/* Accommodation Homepage Styles — Magazine Edition */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --ac-charcoal: #1a1a1a;
  --ac-dark: #333333;
  --ac-medium: #666666;
  --ac-pale: #E5E5E5;
  --ac-off-white: #F8F8F8;
  --ac-white: #FFFFFF;
  --ac-gold: #B8860B;
  --ac-gold-dark: #9B7209;
  /* Darkest gold: the only tint with AA contrast (6.5:1) under white text */
  --ac-gold-deep: #7A5807;
  --ac-gold-light: #D4A637;

  --ac-space-sm: 1rem;
  --ac-space-md: 1.5rem;
  --ac-space-lg: 2rem;
  --ac-space-xl: 3rem;
  --ac-space-2xl: 4rem;
  --ac-space-3xl: 6rem;

  --ac-text-base: 1rem;
  --ac-text-lg: 1.125rem;
  --ac-text-xl: 1.25rem;
  --ac-text-2xl: 1.5rem;
  --ac-text-3xl: 2rem;
  --ac-text-4xl: 2.5rem;

  --ac-shadow-md: 0 4px 15px rgba(0, 0, 0, 0.06);
  --ac-shadow-gold: 0 4px 15px rgba(184, 134, 11, 0.3);

  --ac-transition: 0.3s ease;
  --ac-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   LAYOUT
   ============================================ */
.ac-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ac-space-lg);
}

.ac-section {
  padding: var(--ac-space-3xl) 0;
  position: relative;
}

.ac-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--ac-pale);
}

.ac-section:last-of-type::after {
  display: none;
}

.ac-section--alt {
  background: var(--ac-off-white);
}

.ac-section--no-padding {
  padding: 0;
}

.ac-section--no-padding::after {
  display: none;
}

.ac-section-header {
  text-align: center;
  margin-bottom: var(--ac-space-2xl);
}

.ac-section-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--ac-text-4xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ac-charcoal);
  margin-bottom: var(--ac-space-md);
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

.ac-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--ac-gold);
}

/* ============================================
   HERO — Full Viewport with Background Image
   ============================================ */
.ac-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--ac-charcoal);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: var(--ac-space-3xl) var(--ac-space-lg);
}

.ac-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.ac-hero__content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 80vh;
}

.ac-hero__text {
  max-width: 650px;
  padding: var(--ac-space-2xl) 0;
}

.ac-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ac-white);
  margin-bottom: var(--ac-space-lg);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.ac-hero__subtitle {
  font-size: var(--ac-text-xl);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--ac-space-md);
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.ac-hero__description {
  font-size: var(--ac-text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--ac-space-md);
  line-height: 1.7;
  font-weight: 300;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.ac-hero__cta {
  display: flex;
  gap: var(--ac-space-lg);
  margin-top: var(--ac-space-xl);
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   STATUS PILL — Module-in-progress notice
   ============================================ */
.ac-status-pill {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--ac-gold-light);
  border-radius: 2rem;
  color: var(--ac-gold-light);
  font-size: 0.9rem;
}

/* ============================================
   EDITORIAL SPLIT — Image + Text
   ============================================ */
.ac-editorial-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  min-height: 600px;
}

.ac-editorial-split--reverse {
  grid-template-columns: 7fr 5fr;
}

.ac-editorial-split__image {
  background-color: var(--ac-charcoal);
  background-size: cover;
  background-position: center;
  min-height: 600px;
  position: relative;
}

.ac-editorial-split__content {
  padding: var(--ac-space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ac-white);
}

.ac-editorial-split--reverse .ac-editorial-split__content {
  background: var(--ac-off-white);
}

.ac-editorial-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--ac-text-4xl);
  margin-bottom: var(--ac-space-lg);
  color: var(--ac-charcoal);
  font-weight: 300;
  line-height: 1.2;
}

.ac-editorial-text {
  font-size: var(--ac-text-lg);
  line-height: 1.8;
  color: var(--ac-dark);
  margin-bottom: var(--ac-space-md);
}

/* ============================================
   FERALIST COMMUNITY SEAL
   ============================================ */
.ac-seal-legend {
  margin-bottom: var(--ac-space-md);
}

.ac-seal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem 0.5rem 0.7rem;
  border: 2px solid var(--ac-charcoal);
  border-radius: 2rem;
  background: var(--ac-white);
  color: var(--ac-charcoal);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ac-seal {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--ac-gold-dark);
}

/* ============================================
   PROPERTY GRID — Showcased Places
   ============================================ */
.ac-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--ac-space-xl);
  margin-top: var(--ac-space-2xl);
}

.ac-property-card {
  background: var(--ac-white);
  border: 1px solid var(--ac-pale);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--ac-transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: var(--ac-shadow-md);
  position: relative;
}

.ac-property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid var(--ac-gold);
  opacity: 0;
  transition: opacity var(--ac-transition);
  pointer-events: none;
}

.ac-property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.ac-property-card:hover::after {
  opacity: 0.3;
}

.ac-property-card__image {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--ac-off-white) 0%, #e8e8e8 100%);
}

.ac-property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-property-card:hover .ac-property-card__image img {
  transform: scale(1.12);
}

.ac-property-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ac-gold);
}

.ac-property-card__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 15px, var(--ac-gold) 15px, var(--ac-gold) 16px);
}

.ac-property-card__placeholder svg {
  width: 4rem;
  height: 4rem;
  opacity: 0.3;
  position: relative;
}

.ac-property-card__badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--ac-gold-deep);
  color: var(--ac-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.5);
  border-radius: 4px;
  border: 2px solid var(--ac-charcoal);
}

.ac-property-card__body {
  padding: var(--ac-space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ac-property-card__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ac-gold-deep);
  margin-bottom: var(--ac-space-sm);
  font-weight: 700;
  align-self: flex-start;
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid var(--ac-gold-dark);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
}

.ac-property-card__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--ac-text-xl);
  margin-bottom: var(--ac-space-sm);
  color: var(--ac-charcoal);
  font-weight: 400;
  line-height: 1.3;
  transition: color var(--ac-transition);
}

.ac-property-card:hover .ac-property-card__title {
  color: var(--ac-gold-dark);
}

.ac-property-card__location {
  font-size: 0.95rem;
  color: var(--ac-medium);
  margin-bottom: var(--ac-space-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-property-card__location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ac-property-card__description {
  font-size: var(--ac-text-base);
  color: var(--ac-dark);
  line-height: 1.7;
  margin-bottom: var(--ac-space-md);
  flex-grow: 1;
}

.ac-property-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--ac-space-lg);
  border-top: 1px solid var(--ac-pale);
}

.ac-property-card__price {
  font-size: var(--ac-text-2xl);
  font-weight: 400;
  color: var(--ac-gold-dark);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
}

.ac-property-card__price-label {
  font-size: 0.8rem;
  color: var(--ac-medium);
  font-weight: 400;
  margin-top: 0.25rem;
}

.ac-property-card__cta {
  color: var(--ac-white);
  background: var(--ac-gold-deep);
  border: 2px solid var(--ac-charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--ac-transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  box-shadow: var(--ac-shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-property-card__cta::after {
  content: '→';
  font-size: 1.1rem;
}

.ac-property-card__cta:hover {
  background: var(--ac-charcoal);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.45);
}

/* ============================================
   HOST CTA — Background Image
   ============================================ */
.ac-host-cta {
  position: relative;
  overflow: hidden;
  background-color: var(--ac-charcoal);
}

.ac-host-cta__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.ac-host-cta__gradient {
  position: relative;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.7) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
  padding: var(--ac-space-3xl) 0;
}

.ac-host-cta__inner {
  max-width: 600px;
}

.ac-host-cta__inner h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--ac-text-4xl);
  font-weight: 300;
  color: var(--ac-white);
  margin-bottom: var(--ac-space-lg);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ac-host-cta__inner p {
  font-size: var(--ac-text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: var(--ac-space-lg);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */
.ac-btn {
  display: inline-block;
  padding: var(--ac-space-sm) var(--ac-space-xl);
  font-size: var(--ac-text-base);
  font-weight: 600;
  text-decoration: none;
  transition: var(--ac-transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}

.ac-btn--hero {
  background: var(--ac-white);
  color: var(--ac-charcoal);
  border-color: var(--ac-charcoal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ac-btn--hero:hover {
  background: var(--ac-gold);
  color: var(--ac-white);
  box-shadow: 0 6px 25px rgba(184, 134, 11, 0.4);
}

/* ============================================
   DECORATIVE DIVIDER
   ============================================ */
.ac-section-divider {
  text-align: center;
  padding: var(--ac-space-2xl) 0;
}

.ac-section-divider__ornament {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--ac-gold);
  opacity: 0.5;
}

/* ============================================
   PATTERN BACKGROUND
   ============================================ */
.ac-pattern-bg {
  position: relative;
}

.ac-pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, var(--ac-gold) 35px, var(--ac-gold) 36px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--ac-gold) 35px, var(--ac-gold) 36px);
  pointer-events: none;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.ac-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ac-charcoal);
  color: var(--ac-white);
  border: 2px solid var(--ac-pale);
  text-decoration: none;
  font-size: 1.25rem;
  border-radius: 50%;
  opacity: 0.7;
  transition: all var(--ac-transition);
  z-index: 100;
}

.ac-back-to-top:hover {
  opacity: 1;
  border-color: var(--ac-gold);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 968px) {
  /* Mobile: Overlay text on images for editorial sections */
  .ac-editorial-split,
  .ac-editorial-split--reverse {
    display: block;
    position: relative;
    min-height: 550px;
  }

  .ac-editorial-split__image {
    position: absolute;
    inset: 0;
    min-height: 550px;
    z-index: 0;
  }

  .ac-editorial-split__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
  }

  .ac-editorial-split__content {
    position: relative;
    z-index: 2;
    background: transparent !important;
    padding: var(--ac-space-2xl) var(--ac-space-lg);
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ac-editorial-split__content .ac-editorial-title {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }

  .ac-editorial-split__content .ac-editorial-text {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .ac-property-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .ac-hero {
    min-height: 85vh;
    padding: var(--ac-space-xl) var(--ac-space-md);
  }

  .ac-hero::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.8) 50%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .ac-hero__content {
    justify-content: center;
    text-align: center;
  }

  .ac-hero__text {
    max-width: 100%;
    padding: var(--ac-space-lg) 0;
  }

  .ac-hero h1 {
    font-size: 2.25rem;
    margin-bottom: var(--ac-space-md);
  }

  .ac-hero__subtitle {
    font-size: var(--ac-text-lg);
  }

  .ac-hero__cta {
    flex-direction: column;
    align-items: center;
    gap: var(--ac-space-md);
  }

  .ac-section-header h2 {
    font-size: var(--ac-text-3xl);
  }

  .ac-container {
    padding: 0 var(--ac-space-sm);
  }

  .ac-section {
    padding: var(--ac-space-2xl) 0;
  }

  .ac-host-cta__gradient {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .ac-host-cta__inner h2 {
    font-size: var(--ac-text-3xl);
  }
}

@media (max-width: 480px) {
  .ac-hero h1 {
    font-size: 1.75rem;
  }
}

/* ============================================
   SKIP TO CONTENT
   ============================================ */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  text-decoration: none;
}

.skip-to-content:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 0.75rem 1.5rem;
  background: var(--ac-charcoal);
  color: var(--ac-white);
  border: 2px solid var(--ac-gold);
  border-radius: 4px;
  font-weight: 600;
}

/* ============================================
   FOCUS-VISIBLE — Keyboard Accessibility
   ============================================ */
.ac-btn:focus-visible {
  outline: 3px solid var(--ac-gold);
  outline-offset: 3px;
}

.ac-property-card__cta:focus-visible {
  outline: 3px solid var(--ac-gold-dark);
  outline-offset: 2px;
}

.ac-back-to-top:focus-visible {
  outline: 3px solid var(--ac-gold);
  outline-offset: 3px;
  opacity: 1;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .ac-hero {
    min-height: auto;
    background: white !important;
    color: black;
    padding: 1rem 0;
  }

  .ac-hero::before {
    display: none;
  }

  .ac-hero h1 {
    color: black;
    text-shadow: none;
  }

  .ac-host-cta,
  .ac-back-to-top {
    display: none;
  }

  .ac-editorial-split {
    display: block;
  }

  .ac-editorial-split__image {
    display: none;
  }
}
