/* Modern, clean styling inspired by the reference design */

:root {
  --primary-color: #4A90E2;
  --primary-hover: #357ABD;
  --secondary-color: #50E3C2;
  --accent-color: #F5A623;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E1E8ED;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

.container {
  max-width: 1400px; /* Wider container */
  margin: 0 auto;
  padding: 0 2rem;
}

/* Or for travel plan page specifically, make it even wider */
.travel-plan-page .container {
  max-width: 1600px; /* Extra wide for the 3-column layout */
}

/* Header & Navigation */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-image {
  height: 100px; /* Adjust size */
  width: 100px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.btn-logout, .btn-login {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white !important;
  border-radius: var(--radius);
  transition: background 0.3s;
}

.btn-logout:hover, .btn-login:hover {
  background: var(--primary-hover);
}

/* Main Content */
main {
  min-height: calc(100vh - 180px);
  padding: 2rem 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  margin-bottom: 4rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
}

.btn-google {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--text-dark);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  justify-content: center;
}

.btn-google:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Features Section */
.features {
  padding: 4rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
}

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-box {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-box h1 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.login-box p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.login-info {
  margin-top: 2rem;
  text-align: left;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.login-info ul {
  list-style: none;
  margin-top: 1rem;
}

.login-info li {
  padding: 0.5rem 0;
  color: var(--text-light);
}

.login-info li:before {
  content: "✓ ";
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Travel Planner - Chat Interface */
.travel-planner {
  padding: 2rem 0;
}

.travel-planner h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-messages {
  height: 500px;
  overflow-y: auto;
  padding: 2rem;
  background: #f5f7fa;
}

.message {
  margin-bottom: 1.5rem;
  display: flex;
}

.message-user {
  justify-content: flex-end;
}

.message-assistant {
  justify-content: flex-start;
}

.message-content {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  line-height: 1.5;
}

.message-user .message-content {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-assistant .message-content {
  background: white;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 4px;
}

.chat-input-form {
  display: flex;
  padding: 1.5rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  gap: 1rem;
}

.chat-input-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.chat-input-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chat-input-form input:disabled {
  background: var(--bg-light);
  cursor: not-allowed;
}

#resetChat {
  display: block;
  margin: 1rem auto;
}

/* Dashboard */
.dashboard {
  padding: 3rem 0;
}

.dashboard h1 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  text-align: center;
}

.dashboard-intro {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.dashboard-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
/* Trips Page */
.trips-page {
  padding: 2rem 0;
}

.trips-page h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.trip-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.trip-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.trip-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.trip-info {
  padding: 1.5rem;
}

.trip-info h3 {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.trip-info .destination,
.trip-info .date {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.trip-info .btn {
  margin-top: 1rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

/* Trip Detail */
.trip-detail {
  padding: 2rem 0;
}

.trip-detail h1 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.trip-detail .destination {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.trip-detail .dates {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.trip-description {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.trip-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.trip-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trip-highlights {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.trip-highlights h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.trip-highlights ul {
  list-style: none;
}

.trip-highlights li {
  padding: 0.5rem 0;
  color: var(--text-light);
  padding-left: 1.5rem;
  position: relative;
}

.trip-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Error Page */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

/* Travel Plan Display */
.travel-plan-container {
  width: 100%;
  margin: 2rem 0;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.travel-plan {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.plan-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.plan-destination {
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.plan-overview {
  background: linear-gradient(135deg, #667eea15, #764ba215);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

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

.plan-detail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
}

.detail-icon {
  font-size: 2rem;
}

.plan-detail-card strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.plan-detail-card p {
  color: var(--text-light);
  margin: 0;
}

.plan-section {
  margin: 2rem 0;
}

.plan-section h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Itinerary */
.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.itinerary-day {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.itinerary-day:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.day-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.day-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.day-activities {
  margin: 1rem 0;
}

.day-activities ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.day-activities li {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.day-notes {
  background: #fff3cd;
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  border-left: 4px solid #ffc107;
  font-style: italic;
}

/* Accommodations */
.accommodation-recommendations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recommendation-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  align-items: flex-start;
}

.rec-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.accommodation-tips {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-color);
  margin-top: 1rem;
}

/* Budget Breakdown */
.budget-breakdown {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.budget-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.budget-item:last-child {
  border-bottom: none;
}

.budget-total {
  background: var(--primary-color);
  color: white;
  font-size: 1.1rem;
}

/* Packing List & Travel Tips */
.plan-two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.packing-list,
.travel-tips {
  list-style: none;
  padding: 0;
}

.packing-list li,
.travel-tips li {
  padding: 0.75rem;
  background: var(--bg-light);
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.packing-list li:before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.travel-tips li:before {
  content: "💡";
  font-size: 1.2rem;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #50e3c215, #4a90e215);
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.highlight-card:hover {
  border-color: var(--secondary-color);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Plan Actions */
.plan-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* Typing Indicator */
.typing-indicator .message-content {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 1rem 1.5rem;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.25rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .feature-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-messages {
    height: 400px;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .travel-plan {
    padding: 1rem;
  }
  
  .plan-details-grid {
    grid-template-columns: 1fr;
  }
  
  .itinerary-day {
    flex-direction: column;
  }
  
  .plan-two-column {
    grid-template-columns: 1fr;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Travel Plan Full Page */
.travel-plan-page {
  padding: 2rem 0;
  min-height: 100vh;
}

.plan-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.back-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary-hover);
}

.plan-page-header h1 {
  color: var(--text-dark);
  font-size: 2rem;
}

.plan-content-wrapper {
  min-height: 400px;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  margin-top: 1rem;
  color: var(--text-light);
}

/* Empty State */
.empty-plan-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.empty-plan-state h2,
.error-state h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.empty-plan-state p,
.error-state p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Full Travel Plan */
.full-travel-plan {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.full-plan-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.plan-title-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.plan-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 600px;
}

.plan-actions-header {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-actions-header .btn {
  white-space: nowrap;
}

/* Quick Stats */
.plan-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-light);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.stat-value {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Content Grid */
.plan-content-grid {
  display: grid;
  grid-template-columns: 3.5fr 1fr; /* Even more space for itinerary */
  gap: 1rem;
  align-items: start;
}

.plan-main-column {
  min-width: 0;
}

.plan-sidebar-column {
  min-width: 450px;
  max-width: 620px;
}

.plan-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  width:100%;
}

.full-width-card {
  grid-column: 1 / -1;
}

.section-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

@media (max-width: 1024px) {
  .plan-content-grid {
    grid-template-columns: 1fr; /* Stack on smaller screens */
  }
}

/* Timeline Itinerary */
.itinerary-timeline {
  position: relative;
  padding-left: 2rem;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
}

.day-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

.timeline-content {
  padding-left: 2rem;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.day-section {
  margin: 1.5rem 0;
}

.day-section h4 {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.activity-list {
  list-style: none;
  padding: 0;
}

.activity-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
}

.activity-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.day-notes-box {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* Accommodations */
.accommodations-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accommodation-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  align-items: flex-start;
  border-left: 4px solid var(--primary-color);
}

.accommodation-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.booking-tips-box {
  background: #e3f2fd;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.booking-tips-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Budget Summary */
.budget-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.budget-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.budget-row:last-child {
  border-bottom: none;
}

.budget-label {
  color: var(--text-dark);
}

.budget-amount {
  font-weight: 600;
  color: var(--primary-color);
}

.budget-total-row {
  background: var(--primary-color);
  color: white;
}

.budget-total-row .budget-label,
.budget-total-row .budget-amount {
  color: white;
  font-size: 1.1rem;
}

/* Sticky Sidebar */
.sticky-card {
  position: sticky;
  top: 100px;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-light);
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
}

.checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checklist label {
  cursor: pointer;
  flex: 1;
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
}

.tips-list li {
  padding: 1rem;
  background: var(--bg-light);
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  padding-left: 3rem;
  position: relative;
}

.tips-list li::before {
  content: "💡";
  position: absolute;
  left: 1rem;
  font-size: 1.5rem;
}

/* Highlights Showcase */
.highlights-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.highlight-showcase-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #50e3c220, #4a90e220);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.highlight-showcase-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.highlight-showcase-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* Bottom Actions */
.plan-bottom-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg-light);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .back-link,
  .plan-actions-header,
  .plan-bottom-actions {
    display: none !important;
  }

  .full-travel-plan {
    box-shadow: none;
  }

  .plan-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .plan-content-grid {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .full-plan-header {
    padding: 2rem 1rem;
  }

  .plan-title-section h1 {
    font-size: 2rem;
  }

  .plan-quick-stats {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .plan-content-grid {
    padding: 1rem;
  }

  .plan-card {
    padding: 1rem;
  }

  .timeline-content {
    padding-left: 1rem;
  }

  .highlights-showcase {
    grid-template-columns: 1fr;
  }

  .plan-bottom-actions {
    flex-direction: column;
  }
}

/* Plans Layout with Sidebar */
.plans-layout {
  display: grid;
  grid-template-columns: 240px 1fr; /* Narrower sidebar, more space for content */
  gap: 1.5rem;
  align-items: start;
}

.plans-sidebar {
  min-width: 240px;
  max-width: 260px;
}

.plans-sidebar h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-list-item {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  border: 2px solid transparent;
}

.plan-list-item:hover {
  background: #e3f2fd;
  transform: translateX(4px);
}

.plan-list-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.plan-list-item.active .plan-list-title,
.plan-list-item.active .plan-list-date {
  color: white;
}

.plan-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.plan-list-title {
  font-weight: 600;
  color: var(--text-dark);
}

.favorite-star {
  font-size: 1rem;
}

.plan-list-date {
  font-size: 0.875rem;
  color: var(--text-light);
}

.plan-delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.plan-list-item:hover .plan-delete-btn {
  opacity: 1;
}

.plan-delete-btn:hover {
  transform: scale(1.2);
}

.empty-plans-list,
.loading-small,
.error-small {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
}

.plan-content-main {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 600px;
}

.welcome-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  height: 100%;
}

.welcome-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.welcome-state h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.welcome-state p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .plans-layout {
    grid-template-columns: 1fr;
  }
  
  .plans-sidebar {
    position: static;
  }
}

/* Travel Plan Edit Page */
.travel-plan-edit-page {
  padding: 2rem 0;
  min-height: 100vh;
}

.edit-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.edit-page-header h1 {
  color: var(--text-dark);
  font-size: 2rem;
}

.edit-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Edit Form */
.edit-plan-form {
  max-width: 1200px;
  margin: 0 auto;
}

.edit-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.edit-section:last-child {
  border-bottom: none;
}

.edit-section-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Itinerary Edit */
.itinerary-edit-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.itinerary-day-edit {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
}

.day-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.day-edit-header h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin: 0;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Editable Items */
.editable-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  position: relative;
}

.editable-item .form-control {
  flex: 1;
}

.remove-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.remove-btn:hover {
  background: #ff3838;
  transform: scale(1.1);
}

.day-edit-header .remove-btn {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-top: 0;
}

/* Edit Actions */
.edit-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .edit-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .edit-content {
    padding: 1rem;
  }
  
  .itinerary-day-edit {
    padding: 1rem;
  }
  
  .day-edit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* ============================================
   FAMILY TRIPS GALLERY STYLING
   ============================================ */

/* Featured Trips on Homepage */
.featured-trips {
  padding: 4rem 0;
  background: white;
}

.section-header-home {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-home h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-header-home p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.featured-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-trip-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-trip-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.trip-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.trip-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-trip-card:hover .trip-image-wrapper img {
  transform: scale(1.1);
}

.trip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.trip-date {
  background: white;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.trip-card-content {
  padding: 1.5rem;
}

.trip-card-content h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.trip-location {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.trip-description {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.trip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trip-tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

.trip-read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.trip-read-more:hover {
  gap: 1rem;
}

.view-all-trips {
  text-align: center;
  margin-top: 3rem;
}

/* Trips Gallery Page */
.trips-gallery-page {
  min-height: 100vh;
}

.trips-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.trips-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.trips-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
}

.trip-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--text-dark);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.trips-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.gallery-trip-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  opacity: 1;
}

.gallery-trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-trip-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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

.gallery-trip-card:hover .gallery-trip-image img {
  transform: scale(1.08);
}

.gallery-trip-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-trip-card:hover .gallery-trip-overlay {
  transform: translateY(0);
}

.trip-info-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.overlay-location,
.overlay-date {
  font-size: 0.9rem;
  opacity: 0.95;
}

.gallery-trip-content {
  padding: 1.5rem;
}

.trip-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.trip-country {
  font-weight: 600;
  color: var(--primary-color);
}

.gallery-trip-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.gallery-description {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.trip-highlights-preview {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.trip-highlights-preview strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.trip-highlights-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trip-highlights-preview li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.trip-highlights-preview li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.trip-highlights-preview .more-highlights {
  color: var(--primary-color);
  font-weight: 600;
}

.trip-highlights-preview .more-highlights:before {
  content: "→";
  color: var(--primary-color);
}

.trip-tags-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trip-tag-small {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* Trip Detail Page */
.trip-detail-page {
  min-height: 100vh;
}

.trip-detail-hero {
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  position: relative;
}

.trip-breadcrumb {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.trip-breadcrumb a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.trip-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.trip-detail-hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.trip-hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: white;
  font-size: 1.1rem;
}

.trip-hero-meta span {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.trip-detail-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem 20px;
}

.trip-detail-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.trip-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.trip-section:last-child {
  border-bottom: none;
}

.trip-section h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.trip-story p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.trip-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s;
}

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

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

.trip-highlights-list {
  list-style: none;
  padding: 0;
}

.trip-highlights-list li {
  padding: 1rem;
  background: var(--bg-light);
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  padding-left: 3rem;
  position: relative;
  font-size: 1.05rem;
}

.trip-highlights-list li:before {
  content: "⭐";
  position: absolute;
  left: 1rem;
  font-size: 1.5rem;
}

/* Sidebar */
.trip-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.trip-info-grid {
  display: grid;
  gap: 1rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.info-item p {
  color: var(--text-light);
  margin: 0;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tag {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sidebar-cta h3 {
  color: white;
  border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-cta p {
  margin-bottom: 1rem;
  opacity: 0.95;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  pointer-events: all;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .trip-detail-container {
    grid-template-columns: 1fr;
  }
  
  .trip-detail-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .featured-trips-grid,
  .trips-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .trip-detail-hero {
    height: 40vh;
  }
  
  .trip-detail-hero h1 {
    font-size: 2rem;
  }
  
  .trip-hero-meta {
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  
  .trip-photo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
/* Logged-In Homepage Styles */
.hero-logged-in {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-home-section {
  padding: 4rem 0;
  background: white;
}

.user-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.user-home-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}

.user-home-card:hover {
  transform: translateY(-8px);
}

.card-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.card-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.card-tertiary {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.user-home-card .card-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.user-home-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.user-home-card p {
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.btn-white {
  background: white;
  color: var(--primary-color);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
}

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

/* User Stats Section */
.user-stats-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-item .stat-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.stat-content h4 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .user-home-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Budget Tracker Styles */
.budget-tracker {
  padding: 0;
}

.budget-summary {
  margin-bottom: 2rem;
}

.budget-summary h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.budget-summary-card {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.budget-summary-card.over-budget {
  background: #fee;
  border: 2px solid #f44;
}

.budget-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.budget-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.budget-planned {
  color: #666;
}

.budget-actual {
  color: var(--primary-color);
}

.budget-remaining {
  color: #2ecc71;
}

.over-budget .budget-remaining {
  color: #e74c3c;
}

.budget-percent {
  color: var(--primary-color);
}

.budget-progress-bar {
  width: 100%;
  height: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.budget-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.budget-progress-fill.over-budget {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Category Breakdown */
.budget-categories {
  margin-bottom: 2rem;
}

.budget-categories h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.category-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-row {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: var(--radius);
}

.category-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.category-icon {
  font-size: 1.5rem;
}

.category-name {
  font-weight: 600;
  color: var(--text-dark);
}

.category-amounts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.category-actual {
  font-weight: 700;
  color: var(--primary-color);
}

.category-separator {
  color: var(--text-light);
}

.category-planned {
  color: var(--text-light);
}

.category-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.5s ease;
}

.category-bar-fill.over-budget {
  background: #e74c3c;
}

/* Expense Management */
.expense-management {
  margin-top: 2rem;
}

.expense-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.expense-header h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0;
}

.expenses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.empty-expenses {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: var(--radius);
}

.expense-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  align-items: center;
  width: 100%; /* Full width */

}

.expense-icon {
  font-size: 1.5rem;
}

.expense-details {
  flex: 1;
}

.expense-description {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  word-wrap: break-word; /* Wrap long text */

}

.expense-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.expense-category {
  font-weight: 500;
}

.expense-notes {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.expense-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.expense-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-icon:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Expense Modal */
.expense-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.expense-modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.expense-modal-content h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .budget-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .expense-item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }
  
  .expense-amount {
    grid-column: 1 / -1;
    text-align: right;
  }
  
  .expense-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
/* Itinerary Map Styles */
.itinerary-map-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: block !important;  /* Ensure it's visible */
}

.itinerary-map-container h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#itineraryMap {
  width: 100%;
  height: 500px !important;  /* Add !important to override */
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #e0e0e0;  /* Gray background while loading */
}

.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  background: var(--bg-light);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 1.1rem;
}

.map-legend {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

@media (max-width: 768px) {
  #itineraryMap {
    height: 400px;
  }
}
/* Weather Forecast Card */
.weather-card {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border: 2px solid #667eea30;
}

.weather-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.weather-day {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.weather-day:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.weather-date {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-icon {
  font-size: 3rem;
  margin: 0.75rem 0;
  line-height: 1;
}

.weather-temp {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.weather-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: capitalize;
  line-height: 1.4;
}

.weather-rain {
  font-size: 0.85rem;
  color: #3b82f6;
  margin-top: 0.5rem;
  font-weight: 600;
}

.packing-advice {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.packing-advice h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.packing-advice ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.packing-advice li {
  padding: 0.75rem 0;
  color: var(--text-dark);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-color);
}

.packing-advice li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .weather-forecast {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .weather-day {
    padding: 1rem;
  }
  
  .weather-icon {
    font-size: 2.5rem;
  }
}
.weather-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.5;
}

/* Booking Affiliate Section */
.booking-section {
  background: linear-gradient(135deg, #003580 0%, #0057b8 100%);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0, 53, 128, 0.2);
}

.booking-content {
  text-align: center;
  color: white;
}

.booking-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.booking-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.btn-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  background: white;
  color: #003580;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-booking:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.affiliate-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .booking-section {
    padding: 1.5rem;
  }
  
  .booking-section h3 {
    font-size: 1.4rem;
  }
  
  .btn-booking {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}