/* 
 * TripzyBD Demo Design System & Stylesheet
 * Premium, clean, modern travel directory theme.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-light: #e0f2fe;
  --color-secondary: #f97316;
  --color-secondary-dark: #ea580c;
  --color-accent: #f59e0b;
  --color-dark: #0f172a;
  --color-dark-surface: #1e293b;
  --color-gray: #64748b;
  --color-gray-light: #FAF6F0;
  --color-border: #E6E1D8;
  --color-white: #FCFBF7;
  --color-success: #10b981;
  --color-error: #ef4444;

  --font-primary: 'Inter', sans-serif;
  --font-bangla: 'Noto Sans Bengali', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background: var(--color-gray-light);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.site-header {
  background: rgba(252, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.main-nav {
  display: flex;
  gap: 25px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-gray);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 280px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(15,23,42,0.8));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

/* Search Bar */
.search-container {
  background: var(--color-white);
  padding: 15px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.search-field label, .search-field .search-label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 5px;
}

.search-field input, .search-field select {
  border: 1px solid var(--color-border);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
}

/* Form utilities */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Directory Layout */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.filter-group:last-child {
  border: none;
  padding: 0;
  margin: 0;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: var(--color-dark);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-gray);
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--color-primary);
}

/* Grid layout for cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Hotel Card */
.hotel-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e2e8f0;
}

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

.badge-featured {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.btn-favorite-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
}

.card-stars {
  color: var(--color-accent);
  margin-bottom: 5px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-location {
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 12px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

.card-price span {
  font-size: 11px;
  color: var(--color-gray);
  font-weight: normal;
}

/* Detail View Layout */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 60px;
}

.gallery-container {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 25px;
  overflow: visible !important;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  background: #ddd;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.info-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 90px;
}

/* Comparison Layout */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.comparison-table th, .comparison-table td {
  padding: 15px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
}

/* Floating AI Chat Assistant */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none !important;
}

.ai-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  pointer-events: auto !important;
}

.ai-chat-btn:hover {
  transform: scale(1.05);
}

.ai-chat-window {
  width: 350px;
  height: 450px;
  background: rgba(252, 251, 247, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(252, 251, 247, 0.3);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.ai-chat-window.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto !important;
}

.chat-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  font-size: 16px;
  font-weight: bold;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  max-width: 80%;
  line-height: 1.4;
}

.message-ai {
  background: var(--color-gray-light);
  color: var(--color-dark);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.message-user {
  background: var(--color-primary);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex-grow: 1;
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  border-radius: 20px;
  outline: none;
  font-size: 13px;
}

.chat-input-area button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Widgets Bar Styling */
.widgets-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
}

.widgets-bar .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widgets-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.widgets-row-1 {
  /* Removed border and padding since the second widgets row was removed */
}

.widget-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-icon {
  font-size: 14px;
}

#live-clock-time {
  font-family: monospace;
  font-weight: 600;
}

@media (max-width: 768px) {
  .widgets-row {
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .widgets-row-1 {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Footer styling */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 20px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 15px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.footer-col p {
  color: var(--color-gray);
  font-size: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  color: var(--color-gray);
  font-size: 13px;
}

@media (max-width: 768px) {
  .directory-layout, .details-layout {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  
  /* Footer Mobile Grid Optimization (2-columns) */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    text-align: center;
    gap: 30px 20px !important;
  }
  
  .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  /* Logo & About column spans full width at the top */
  .footer-grid > .footer-col:nth-child(1) {
    grid-column: span 2 !important;
  }
  
  /* Destinations column (left column, same row) */
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: span 1 !important;
  }

  /* Legal Info column (right column, same row) */
  .footer-grid > .footer-col:nth-child(3) {
    grid-column: span 1 !important;
  }

  /* Helpline column spans full width at the bottom */
  .footer-grid > .footer-col:nth-child(4) {
    grid-column: span 2 !important;
  }
  
  .footer-col p {
    text-align: center;
    margin: 10px auto 0 auto !important;
  }

  .footer-col ul {
    padding: 0;
    margin: 0;
  }

  .footer-col h3, .footer-col h4 {
    text-align: center;
    margin-bottom: 12px;
  }
  
  /* Subscribe Card Mobile Layout */
  .subscribe-card {
    padding: 30px 20px !important;
    margin: 30px 15px !important;
    text-align: center;
  }
  
  .subscribe-form {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
  }
  
  .subscribe-form input,
  .subscribe-form button {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* --- DAY/NIGHT THEME STYLES --- */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.3s ease, transform 0.3s ease;
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: scale(1.08);
}

body.dark-theme .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contrast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-dark);
  background: linear-gradient(to right, transparent 50%, var(--color-dark) 50%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .contrast-icon {
  transform: rotate(180deg);
}

/* Helpline button styling */
.header-phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

/* Member button styling */
.header-member-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 50% !important;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-icon {
  font-size: 14px;
}

.phone-number-text {
  font-size: 14px;
  font-weight: 600;
}

/* Hide phone number text on screen sizes under 1250px (laptop/desktop landscape) */
@media (max-width: 1250px) {
  .header-phone-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0;
  }
  .phone-number-text {
    display: none !important;
  }
  .phone-icon {
    margin: 0 !important;
    font-size: 16px !important;
  }
}

/* Mobile Header Quick Actions */
.mobile-action-btn {
  display: none; /* Hidden by default on desktop */
  font-size: 16px;
  text-decoration: none;
  position: relative;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  color: var(--color-dark);
  flex-shrink: 0;
}

.mobile-action-btn:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: scale(1.05);
}

body.dark-theme .mobile-action-btn {
  background: var(--color-dark-2);
}

/* Show on viewports <= 1150px (mobile & tablet) */
@media (max-width: 1150px) {
  .mobile-action-btn {
    display: flex;
  }
}

/* Lightbox Modal overlay */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 12000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(5px);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transform: scale(0.95);
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--color-gray);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  z-index: 12010;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  color: var(--color-dark);
  background: rgba(14, 165, 233, 0.15);
}
#lightbox-caption {
  text-align: center;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 15px;
  margin-top: 15px;
  padding: 5px 20px;
}

body.dark-theme {
  --color-white: #1e293b;
  --color-gray-light: #0f172a;
  --color-border: #334155;
  --color-dark: #f8fafc;
  --color-primary-light: #0c4a6e;
  --color-primary-dark: #bae6fd;
  background: #0f172a;
  color: #cbd5e1;
}
body.dark-theme .site-header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}
body.dark-theme .logo {
  color: #f8fafc;
}
body.dark-theme .main-nav a {
  color: #94a3b8;
}
body.dark-theme .main-nav a:hover, body.dark-theme .main-nav a.active {
  color: var(--color-primary);
}
body.dark-theme .filters-sidebar,
body.dark-theme .hotel-card,
body.dark-theme .info-sidebar,
body.dark-theme .comparison-table,
body.dark-theme .chat-header {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}
body.dark-theme .card-footer {
  background: #1e293b;
  border-top: 1px solid #334155;
}
body.dark-theme .card-title,
body.dark-theme .filter-group h4,
body.dark-theme .comparison-table th {
  color: #f8fafc;
}
body.dark-theme .comparison-table th,
body.dark-theme .comparison-table td {
  border-color: #334155;
}
body.dark-theme .comparison-table th {
  background: #0f172a;
}
body.dark-theme .btn-favorite-toggle {
  background: rgba(30, 41, 59, 0.9);
}
body.dark-theme .message-ai {
  background: #334155;
  color: #cbd5e1;
}
body.dark-theme .chat-input-area {
  border-top: 1px solid #334155;
}
body.dark-theme .chat-input-area input {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
body.dark-theme .ai-chat-window {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme input, body.dark-theme select, body.dark-theme textarea {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}
body.dark-theme .btn-outline {
  color: #38bdf8;
  border-color: #38bdf8;
}
body.dark-theme .btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
}
body.dark-theme .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
body.dark-theme .site-footer {
  background: #090d16;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}
body.dark-theme .site-footer h3,
body.dark-theme .site-footer h4,
body.dark-theme .site-footer .footer-bottom p {
  color: #f8fafc;
}
body.dark-theme .site-footer a {
  color: #94a3b8;
}
body.dark-theme .site-footer a:hover {
  color: var(--color-primary);
}

/* --- COMMENTS SYSTEM --- */
.comments-section {
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
}
body.dark-theme .comments-section {
  border-top: 1px solid #334155;
}
.comment-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
body.dark-theme .comment-item {
  border-bottom: 1px solid #334155;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 8px;
}
.comment-text {
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
}
.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 12px;
  font-size: 13px;
}
.comment-vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-gray);
  font-weight: 600;
  transition: var(--transition);
}
.comment-vote-btn:hover {
  color: var(--color-primary);
}
.comment-badge-pending {
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* --- SOCIAL SHARING --- */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.share-btn-facebook { background: #1877f2; }
.share-btn-facebook:hover { background: #166fe5; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-whatsapp:hover { background: #20ba5a; }
.share-btn-copy { background: #64748b; }
.share-btn-copy:hover { background: #475569; }

/* --- SUBSCRIBE CARD --- */
.subscribe-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.subscribe-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}
.subscribe-card p {
  font-size: 14px;
  margin-bottom: 25px;
  opacity: 0.9;
}
.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}
.subscribe-form input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  color: var(--color-dark);
  background: white;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-msg {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
}

/* Membership Form Card Layouts */
.member-form-container {
  margin-top: 50px;
  margin-bottom: 50px;
  max-width: 450px;
  width: 100%;
}
.member-form-container.signup-width {
  max-width: 500px;
}
.member-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
body.dark-theme .member-form-card {
  background: var(--color-dark-2);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .member-form-container {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .member-form-card {
    padding: 24px 20px;
  }
}

/* Membership Responsive Adjustments */
@media (max-width: 768px) {
  .membership-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* Dropdown Navigation Menu */
.main-nav li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 150px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}

.dropdown-menu li {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  text-align: left;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--color-gray-light);
  color: var(--color-primary);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.dropdown:hover .dropdown-trigger {
  color: var(--color-primary);
}

.dropdown-trigger {
  cursor: pointer;
}

/* --- HORIZONTAL SCROLLER CUSTOM SCROLLBARS --- */
.horizontal-scroller::-webkit-scrollbar {
  height: 6px;
}
.horizontal-scroller::-webkit-scrollbar-track {
  background: transparent;
}
.horizontal-scroller::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
.horizontal-scroller::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray);
}

/* --- ADSENSE PLACEHOLDER --- */
.adsense-placeholder {
  transition: var(--transition);
}
body.dark-theme .adsense-placeholder {
  background: rgba(30, 41, 59, 0.4) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: rgba(148, 163, 184, 0.6) !important;
}

/* --- MINI MAP PREVIEW --- */
.mini-map-container {
  transition: var(--transition);
}
body.dark-theme .mini-map-container iframe {
  filter: invert(90%) hue-rotate(180deg) grayscale(10%) contrast(90%);
}

/* ==========================================================================
   17. MOBILE DRAWER & LAYOUT OPTIMIZATIONS (Phase 12)
   ========================================================================== */

/* Hamburger menu button in header */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-dark);
  padding: 5px;
  line-height: 1;
  transition: var(--transition);
}

/* Sliding Side Drawer panel */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -290px;
  width: 280px;
  height: 100%;
  background: rgba(252, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(252, 251, 247, 0.4);
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 25px 20px;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.active {
  right: 0;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 15px;
}

.drawer-header .logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-dark);
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
}

.drawer-header .logo span {
  color: var(--color-primary);
}

.drawer-close {
  background: rgba(15, 23, 42, 0.05);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-dark);
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  margin-bottom: 20px;
  padding-right: 5px;
}

.drawer-nav li a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.drawer-nav li a:hover {
  background: rgba(14, 165, 233, 0.08);
  color: var(--color-primary-dark);
  border: 1px solid rgba(14, 165, 233, 0.15);
  transform: translateX(4px);
}

.drawer-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 15px;
}

/* Backdrop Overlay */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 2050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.drawer-backdrop.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Floating Bottom Filter button on Mobile */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2040;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

.mobile-filter-btn:hover {
  background: var(--color-primary-dark);
}

/* Sticky Details Booking Footer on Mobile */
.mobile-booking-footer {
  display: none;
}

/* Dark theme specific fixes for mobile drawer */
body.dark-theme .mobile-drawer {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}
body.dark-theme .drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .drawer-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.dark-theme .drawer-nav li a {
  color: #cbd5e1;
}
body.dark-theme .drawer-nav li a:hover {
  background: rgba(14, 165, 233, 0.15);
  color: var(--color-primary-light);
  border-color: rgba(14, 165, 233, 0.25);
}

/* Responsive Overrides for Header (max-width: 1150px) */
@media (max-width: 1150px) {
  .header-member-btn {
    display: none !important;
  }
  
  /* Hide Saved and Compare links inside main-nav on tablet/mobile as we have mobile quick action buttons */
  .main-nav li:nth-last-child(1),
  .main-nav li:nth-last-child(2) {
    display: none !important;
  }
}

/* Tablet Navigation Breakpoint (769px to 1150px) */
@media (min-width: 769px) and (max-width: 1150px) {
  .main-nav {
    display: flex !important;
    gap: 12px !important;
  }
  .main-nav a {
    font-size: 13.5px !important;
  }
  .header-phone-btn {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Mobile-only Header Overrides (max-width: 768px) */
@media (max-width: 768px) {
  .main-nav, .header-phone-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}

/* Intermediate compact desktop header navigation (1151px to 1300px) */
@media (min-width: 1151px) and (max-width: 1300px) {
  .main-nav {
    gap: 12px;
  }
  .main-nav a {
    font-size: 13.5px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-phone-btn, .header-member-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Responsive Overrides (max-width: 768px) */
@media (max-width: 768px) {
  /* Compact grid layout for mobile */
  .cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  
  .hotel-card {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  }
  
  .card-img-wrap {
    aspect-ratio: 16/11 !important;
  }
  
  .hotel-card p,
  .hotel-card .card-content p,
  .hotel-card .card-content .card-stars + h3 + .card-location + p {
    display: none !important;
  }
  
  .card-content {
    padding: 10px !important;
  }
  
  .card-stars {
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }
  
  .card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .card-location {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }
  
  .card-footer {
    padding: 8px 10px !important;
  }
  
  .card-price {
    font-size: 13px !important;
  }
  
  .card-price span {
    font-size: 9px !important;
  }
  
  .btn-favorite-toggle {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  
  .badge-featured {
    top: 8px !important;
    left: 8px !important;
    padding: 2px 6px !important;
    font-size: 8px !important;
  }

  .hotel-card .btn-primary {
    font-size: 10px !important;
    padding: 5px 10px !important;
  }

  .hero-section {
    min-height: 150px !important;
    height: auto !important;
    padding: 24px 15px !important;
  }
  
  .hero-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  
  .hero-subtitle {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  
  .search-container {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  
  .search-field {
    width: 100%;
  }

  .search-field input, 
  .search-field select {
    font-size: 16px !important;
    padding: 12px 10px !important;
  }

  #hero-search-btn {
    width: 100% !important;
    align-self: stretch !important;
    height: 46px !important;
    margin-top: 5px !important;
    font-size: 16px !important;
  }
  
  /* Filter drawer positioning - made static for natural vertical scrolling */
  .filters-sidebar {
    position: static !important;
    height: auto !important;
    overflow-y: visible !important;
    z-index: auto !important;
    transform: none !important;
    transition: none !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--color-white) !important;
    padding: 20px !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    margin-bottom: 25px !important;
  }
  
  .filters-sidebar.active {
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .filters-sidebar-header {
    display: none !important;
  }
  
  .filters-title-desktop {
    display: block !important;
  }
  
  .mobile-filter-btn {
    display: none !important;
  }

  /* Sticky Booking Footer display */
  .mobile-booking-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  }
  
  body.dark-theme .mobile-booking-footer {
    background: #1e293b;
    border-top-color: #334155;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
  }
  
  /* Compact cards details layouts */
  .details-layout {
    gap: 20px !important;
  }
  
  .gallery-container {
    margin-bottom: 15px;
  }
  
}

/* Responsive Horizontal Scroller Overrides (max-width: 1250px) */
@media (max-width: 1250px) {
  .horizontal-scroller {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: none !important;
    padding-bottom: 12px !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    touch-action: pan-x pan-y !important;
    pointer-events: auto !important;
  }
  
  .horizontal-scroller .hotel-card {
    flex: 0 0 240px !important;
    flex-shrink: 0 !important;
    height: 330px !important;
  }
  
  .horizontal-scroller .hotel-card .card-content {
    height: calc(100% - 150px) !important;
    padding: 12px !important;
  }

  /* Prevent auto-zoom on iOS mobile browsers and keep form layouts clean */
  input, 
  select, 
  textarea {
    font-size: 16px !important;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
  }

  .details-header-flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .details-header-flex > div:last-child {
    text-align: left !important;
    margin-top: 10px;
  }

  .details-header-flex h1 {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  
  .site-header {
    height: 60px;
  }
  
  .header-inner {
    height: 60px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .subscribe-card {
    padding: 25px 15px;
    margin: 25px 10px !important;
    text-align: center;
  }
  
  .subscribe-form {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
  }
  
  .subscribe-form input,
  .subscribe-form button {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .details-layout {
    margin-bottom: 60px; /* space for sticky bottom footer */
  }
}

/* Header & Spacing Adjustments for Mobile Viewports */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 6px;
  }
  .logo {
    font-size: 19px;
  }
}

@media (max-width: 375px) {
  .header-actions {
    gap: 4px;
  }
  .mobile-action-btn, .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .logo {
    font-size: 17px;
  }
}



/* Mobile directory table card stacking and AI chat repositioning */
@media (max-width: 768px) {
  .ai-chat-widget {
    bottom: 85px !important;
    right: 20px !important;
  }
  .ai-chat-window {
    width: calc(100vw - 40px) !important;
    max-width: 340px !important;
    height: 380px !important;
  }

  /* Table Stacking Override for Contacts Directory */
  #directory-tbody {
    display: block;
  }
  #directory-tbody tr {
    display: block;
    padding: 15px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 15px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  #directory-tbody td {
    display: block;
    padding: 8px 0 !important;
    border: none;
    text-align: left !important;
    font-size: 13px;
  }
  #directory-tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    display: inline-block;
    width: 100px;
    color: var(--color-dark);
  }
  
  /* Hide table header and main table outer radius overflow on mobile */
  .container table thead {
    display: none;
  }
  
  /* Make sure Action button fits mobile width nicely */
  #directory-tbody td[data-label="Action"] {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
  }
  #directory-tbody td[data-label="Action"]::before {
    display: none;
  }
}

/* Drawer scroll-locking and touch improvements */
body.drawer-open {
  overflow: hidden !important;
}

.mobile-drawer {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drawer-nav {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Responsive Top Destinations Grid (5 items in one row on desktop) */
.top-destinations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .top-destinations-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  /* Touch-scrollable row on mobile so they stay on a single row without being squished */
  .top-destinations-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 15px 12px 15px;
    margin-left: -15px;
    margin-right: -15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for clean look */
  }
  .top-destinations-grid::-webkit-scrollbar {
    display: none;
  }
  .top-destinations-grid .destination-quick-link {
    flex: 0 0 140px; /* Fixed width on mobile */
    height: 90px !important;
  }
}



