/* ============================================
   CRETE UNLOCKED - Kedrodasos Beach Page
   Design Tokens & Styles
   ============================================ */

/* ============================================
   DESIGN TOKENS (CSS Variables)
   ============================================ */
:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-primary: #67BFBF;
  --color-text-dark: #4E5E68;
  --color-text-body: #000000;
  --color-border: #E1E1E1;
  --color-card-bg: #F7F7F7;
  --color-placeholder: #D9D9D9;
  --color-footer-bg: #101828;
  --color-footer-secondary: #1E2939;
  --color-footer-border: #364153;
  --color-text-light: #D1D5DC;
  --color-button-dark: #030213;

  /* Typography - Font Families */
  --font-heading: 'Lora', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Font Sizes */
  --font-size-hero: 50px;
  --font-size-section-title: 40px;
  --font-size-body: 14px;
  --font-size-body-lg: 16px;
  --font-size-small: 10px;
  --font-size-xs: 12px;
  --font-size-card-title: 16px;
  --font-size-footer-heading: 18px;

  /* Line Heights */
  --line-height-hero: 60px;
  --line-height-section: 64px;
  --line-height-body: 22px;
  --line-height-normal: 24px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1440px;
  --content-width: 1316px;
  --hero-height: 434px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  background-color: var(--color-black);
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 100px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-hero);
  line-height: var(--line-height-hero);
  color: var(--color-white);
  text-align: center;
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */
.description {
  padding: 100px var(--spacing-md);
  text-align: center;
}

.description__content {
  max-width: 1093px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-body);
}

.description__content p {
  margin-bottom: var(--spacing-lg);
}

.description__content p:last-child {
  margin-bottom: 0;
}



/* ============================================
   SECTION TITLE (Shared)
   ============================================ */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-section-title);
  line-height: var(--line-height-section);
  color: var(--color-text-dark);
  text-align: center;
  text-transform: capitalize;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
  padding: 100px var(--spacing-md);
}

.gallery__title {
  margin-bottom: 30px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
  max-width: 1134px;
  margin: 0 auto;
}

.gallery__item {
  width: 100%;
  aspect-ratio: 364 / 310;
  background-color: var(--color-placeholder);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location {
  padding: 0 var(--spacing-md) 100px;
}

.location__title {
  margin-bottom: 30px;
}

.location__map {
  max-width: 1134px;
  margin: 0 auto;
  aspect-ratio: 1134 / 416;
  background-color: var(--color-placeholder);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.location__map img,
.location__map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 416px;
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* Custom Leaflet marker styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.leaflet-popup-content strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
}

/* Custom marker */
.custom-marker {
  background: transparent;
  border: none;
}

.custom-marker svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================
   BUSINESSES NEARBY SECTION
   ============================================ */
.businesses {
  padding: 0 var(--spacing-md) 100px;
}

.businesses__title {
  margin-bottom: 30px;
}

.businesses__grid {
  display: grid;
  grid-template-columns: repeat(4, 270px);
  gap: 24px;
  justify-content: center;
  max-width: 1160px;
  margin: 0 auto;
}

/* ============================================
   BUSINESS CARD COMPONENT
   ============================================ */
.business-card {
  width: 270px;
  height: 339px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.business-card__image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.business-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card__content {
  padding: 20px 23px;
}

.business-card__location {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-small);
  line-height: normal;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 5.1px;
  margin-bottom: 10px;
}

.business-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-card-title);
  line-height: normal;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.business-card__category {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.business-card__category-icon {
  width: 14px;
  height: 14px;
}

.business-card__category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.business-card__category-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-small);
  line-height: normal;
  color: var(--color-text-dark);
}

.business-card__description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-small);
  line-height: normal;
  color: var(--color-text-body);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-footer-bg);
  padding: var(--spacing-2xl) var(--spacing-md);
}

.footer__container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer__logo {
  height: 46px;
  width: auto;
  margin-bottom: 0;
}

.footer__logo img {
  height: 100%;
  width: auto;
}

.footer__address {
  display: flex;
  gap: var(--spacing-xs);
}

.footer__address-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__address-icon img {
  width: 100%;
  height: 100%;
}

.footer__address-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-normal);
  color: var(--color-white);
}

.footer__heading--large {
  font-size: var(--font-size-footer-heading);
  line-height: 27px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__link-icon img {
  width: 100%;
  height: 100%;
}

.footer__contact-button {
  width: 100%;
  padding: var(--spacing-xs) var(--spacing-md);
  background-color: var(--color-button-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-body);
  line-height: 20px;
  color: var(--color-white);
  text-align: center;
  transition: opacity 0.2s ease;
}

.footer__contact-button:hover {
  opacity: 0.9;
}

.footer__button-row {
  display: flex;
  gap: var(--spacing-xs);
}

.footer__secondary-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 6px var(--spacing-sm);
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-body);
  line-height: 20px;
  color: #0A0A0A;
  transition: background-color 0.2s ease;
}

.footer__secondary-button:hover {
  background-color: #F5F5F5;
}

.footer__secondary-button-icon {
  width: 16px;
  height: 16px;
}

.footer__secondary-button-icon img {
  width: 100%;
  height: 100%;
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-footer-secondary);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease;
}

.footer__social-link:hover {
  background-color: #2a3a4a;
}

.footer__social-link img {
  width: 20px;
  height: 20px;
}

.footer__legal {
  margin-top: var(--spacing-md);
}

.footer__legal-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-normal);
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.footer__legal-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: var(--color-white);
}

.footer__app-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__app-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background-color: var(--color-footer-secondary);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.footer__app-link:hover {
  background-color: #2a3a4a;
}

.footer__app-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__app-icon img {
  width: 24px;
  height: 24px;
}

.footer__app-text {
  display: flex;
  flex-direction: column;
}

.footer__app-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-xs);
  line-height: 16px;
  color: var(--color-text-light);
}

.footer__app-store {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-normal);
  color: var(--color-white);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-footer-border);
  margin: var(--spacing-xl) 0;
}

.footer__copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-body);
  line-height: 20px;
  color: var(--color-text-light);
  text-align: center;
}

/* ============================================
   RESPONSIVE STYLES - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }

  .businesses__grid {
    grid-template-columns: repeat(2, 270px);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl) var(--spacing-2xl);
  }
}

/* ============================================
   RESPONSIVE STYLES - MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --hero-height: 434px;
  }

  .hero__title {
    font-size: var(--font-size-hero);
    padding: 0 20px;
  }

  .description {
    padding: 40px 28px;
  }

  .description__content {
    max-width: 350px;
  }


  .gallery {
    padding: 60px 21px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    max-width: 362px;
    gap: 22px;
  }

  .gallery__item {
    aspect-ratio: 362 / 310;
  }

  .location {
    padding: 0 21px 60px;
  }

  .location__map {
    max-width: 362px;
    aspect-ratio: 362 / 300;
  }

  .businesses {
    padding: 60px 21px;
  }

  .businesses__grid {
    grid-template-columns: 1fr;
    max-width: 270px;
    gap: 40px;
  }

  .footer {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer__column {
    align-items: center;
    text-align: center;
  }

  .footer__address {
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__app-links {
    max-width: 200px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
