/*
 * 360 Vacation Center - Search Portal Stylesheet
 * Premium, modern responsive style guide.
 */

:root {
  --primary: #0f172a;       /* Deep slate/navy */
  --primary-light: #1e293b; /* Medium slate */
  --accent: #0ea5e9;        /* Ocean blue/turquoise */
  --accent-hover: #0284c7;  /* Darker ocean blue */
  --gold: #d97706;          /* Luxury gold */
  --text-dark: #334155;     /* Dark slate for body text */
  --text-light: #f8fafc;    /* Soft white */
  --text-muted: #64748b;    /* Muted slate */
  --bg-light: #f1f5f9;      /* Light grey background */
  --border-color: #cbd5e1;  /* Subtle line border */
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-hover);
}

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

/* Page Header */
.portal-header {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 80px 0 100px;
  text-align: center;
  border-bottom: 5px solid var(--accent);
}

.logo-wrapper {
  margin-bottom: 25px;
}

.portal-logo {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.portal-header h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.portal-header p {
  color: #cbd5e1;
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Search Filters Form */
.search-widget-container {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.search-widget {
  background: white;
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  width: 100%;
  height: 48px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--primary);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background-color: white;
}

.btn-reset {
  height: 48px;
  padding: 0 25px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Results Stats Bar */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.results-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Package Card */
.package-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-light);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.duration-tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-destination {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.highlights-list {
  list-style: none;
  margin-bottom: 25px;
}

.highlights-list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.highlights-list li i {
  color: var(--accent);
  margin-top: 4px;
}

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

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn-primary-sm, .btn-secondary-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary-sm {
  background-color: var(--accent);
  color: white;
  border: none;
}
.btn-primary-sm:hover {
  background-color: var(--accent-hover);
}

.btn-secondary-sm {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-secondary-sm:hover {
  background-color: var(--primary);
  color: white;
}

/* Modal Popup Layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  border-radius: var(--radius-md);
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--primary);
  color: white;
}

.modal-header-banner {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.9) 100%);
}

.modal-title-box {
  position: absolute;
  bottom: 25px;
  left: 30px;
  right: 30px;
  color: white;
}

.modal-title-box h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.modal-body {
  padding: 30px;
}

.modal-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

/* Timeline/Itinerary */
.itinerary-timeline {
  position: relative;
  margin: 25px 0;
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 5px;
  background-color: var(--accent);
  border: 4px solid white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.timeline-day {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Empty State */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.no-results i {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .portal-header h1 {
    font-size: 2.2rem;
  }
  .search-widget {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-reset {
    width: 100%;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .modal-container {
    width: 95%;
  }
}

/* Quote Page Layout */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  margin: -40px auto 60px;
  position: relative;
  z-index: 10;
}

.quote-sidebar {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-self: start;
}

.quote-main {
  background: white;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quote-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .quote-layout {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

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

.form-group label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--primary);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background-color: white;
}

.btn-submit {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.success-container {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 5rem;
  color: #10b981; /* Success Green */
  margin-bottom: 20px;
  animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.success-text {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-pkg-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-pkg-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.sidebar-pkg-dest {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.95rem;
}

.sidebar-info-row span:first-child {
  color: var(--text-muted);
}

.sidebar-info-row span:last-child {
  font-weight: 600;
  color: var(--primary);
}
