/* ==========================================================================
   Mert Apart — Modern Airbnb-Style Accommodation Design System 2026
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Tokens */
  --primary: #c86d51;
  --primary-hover: #b35b41;
  --primary-light: #fbf0ec;
  --secondary: #4a5d4e;
  --secondary-hover: #3c4c3f;
  --secondary-light: #edf2ee;
  --accent: #d98236;
  --accent-light: #fff7ed;
  
  --dark: #1a201c;
  --dark-muted: #4a544d;
  --light-bg: #faf9f6;
  --card-bg: #ffffff;
  --border-color: #e8e5de;
  --border-focus: #c86d51;
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Layout & Spacing */
  --header-height: 80px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  
  /* Shadows & Transitions */
  --shadow-subtle: 0 4px 20px rgba(26, 32, 28, 0.04);
  --shadow-card: 0 10px 30px rgba(26, 32, 28, 0.07);
  --shadow-hover: 0 20px 40px rgba(26, 32, 28, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--dark-muted);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

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

/* --- Global Components & Buttons --- */
.btn-primary-custom {
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 4px 14px rgba(200, 109, 81, 0.35);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 109, 81, 0.45);
}

.btn-secondary-custom {
  background-color: var(--secondary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-secondary-custom:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 93, 78, 0.3);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--dark) !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-outline-custom:hover {
  border-color: var(--dark);
  background-color: var(--dark);
  color: #ffffff !important;
}

.badge-chip {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-chip.secondary {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

/* --- Section Layout Styling --- */
.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.section-header {
  margin-bottom: 3rem;
}

.section-header .subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-header .title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
}

@media (max-width: 576px) {
  .section-header .title {
    font-size: 1.75rem;
  }
}

/* --- Header / Navbar --- */
.navbar-custom {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 229, 222, 0.6);
  transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-subtle);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand-custom span {
  color: var(--primary);
}

.nav-link-custom {
  font-weight: 600;
  color: var(--dark-muted);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-phone-link {
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none !important;
  padding: 0.4rem 0.75rem;
  transition: var(--transition-fast);
  border-radius: 6px;
}

.nav-phone-link:hover {
  color: var(--primary) !important;
  background-color: rgba(200, 109, 81, 0.08);
}

.nav-phone-link i {
  color: #25D366;
  font-size: 1.1rem;
}

/* --- Navbar Toggler Button & Mobile Collapse --- */
.navbar-toggler-custom {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(200, 109, 81, 0.25) !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(200, 109, 81, 0.1);
  outline: none !important;
}

.navbar-toggler-custom:hover,
.navbar-toggler-custom:focus {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(200, 109, 81, 0.3);
  transform: translateY(-1px);
}

.navbar-toggler-custom i {
  font-size: 1.4rem;
  line-height: 1;
}

.navbar-toggler-custom .toggler-text {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobile Dropdown Menu Styling */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-top: 0.75rem;
    box-shadow: 0 16px 40px rgba(26, 32, 28, 0.15);
    border: 1px solid var(--border-color);
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .navbar-custom .nav-link-custom {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .navbar-custom .nav-link-custom.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 6rem 0 8rem 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 32, 28, 0.45) 0%, rgba(26, 32, 28, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

/* --- Booking Search Widget --- */
.booking-search-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--dark);
}

.search-field-group {
  display: flex;
  flex-direction: column;
}

.search-field-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-muted);
  margin-bottom: 0.35rem;
}

.search-field-group input,
.search-field-group select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  background-color: #ffffff;
  outline: none;
  transition: var(--transition-fast);
}

.search-field-group input:focus,
.search-field-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 109, 81, 0.15);
}

/* --- Room Cards (Airbnb Style) --- */
.room-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 109, 81, 0.3);
}

.room-card-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.room-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-card-img {
  transform: scale(1.06);
}

.room-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.room-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.room-card-desc {
  font-size: 0.925rem;
  color: var(--dark-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--dark);
}

.room-card-spec-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.room-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.room-card-price {
  display: flex;
  flex-direction: column;
}

.room-card-price .amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.room-card-price .period {
  font-size: 0.8rem;
  color: var(--dark-muted);
}

/* --- Features Grid --- */
.feature-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem auto;
  transition: var(--transition-smooth);
}

.feature-box:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--dark-muted);
  margin-bottom: 0;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.975rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar,
.testimonial-avatar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-light);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  color: var(--dark);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--dark-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* --- Gallery & Lightbox --- */
.gallery-filter-btn {
  background-color: #ffffff;
  color: var(--dark-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 32, 28, 0.8) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

/* Custom Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1080;
  background-color: rgba(15, 20, 17, 0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary);
}

/* --- Room Detail Sticky Panel --- */
.sticky-booking-card {
  position: sticky;
  top: 100px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color);
}

.room-detail-gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow-card);
}

.room-detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-detail-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.room-detail-thumb.active,
.room-detail-thumb:hover {
  opacity: 1;
  outline: 3px solid var(--primary);
}

.room-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Footer --- */
.footer-custom {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--primary);
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
}

/* --- Toast / Alert styling --- */
.toast-custom {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  background-color: var(--dark);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-custom.show {
  transform: translateY(0);
  opacity: 1;
}
