/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ================= FLASH MESSAGES ================= */
.flash-messages {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  animation: slideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.flash-message {
  padding: 18px 26px;
  margin-bottom: 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  backdrop-filter: blur(12px);
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.flash-message::before {
  content: '';
  font-size: 24px;
  line-height: 1;
  animation: bounceIcon 0.6s ease-out;
}

@keyframes bounceIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
}

/* Error Messages - Red Theme */
.flash-message.error {
  background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
  color: white;
  border-left: 5px solid #d32f2f;
}

.flash-message.error::before {
  content: '⚠️';
}

/* Warning Messages - Orange/Yellow Theme */
.flash-message.warning {
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
  color: white;
  border-left: 5px solid #f57c00;
}

.flash-message.warning::before {
  content: 'ℹ️';
}

/* Success Messages - Green Theme */
.flash-message.success {
  background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
  color: white;
  border-left: 5px solid #388e3c;
}

.flash-message.success::before {
  content: '✓';
}

/* Info Messages - Blue Theme */
.flash-message.info {
  background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
  color: white;
  border-left: 5px solid #1976d2;
}

.flash-message.info::before {
  content: 'ℹ️';
}

/* Close Button */
.flash-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.flash-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.15) rotate(90deg);
}

.flash-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Auto-dismiss animation */
.flash-message.fade-out {
  animation: fadeOut 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
}

/* Progress bar at bottom of flash message */
.flash-message::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  animation: progressBar 5s linear forwards;
  border-radius: 0 0 14px 14px;
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: white;
  z-index: 2;
  padding: 60px 20px 100px 20px;
  background: rgba(0, 0, 0, 0.25);
}

.hero-text {
  text-align: center;
  margin-top: 120px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.stars {
  color: gold;
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 500;
}

.hero-description {
  font-size: 16px;
  opacity: 0.95;
}

/* ================= SEARCH BOX ================= */
.search-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  width: 85%;
  max-width: 1100px;
  display: flex;
  gap: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  align-items: flex-end;
  backdrop-filter: blur(10px);
}

.search-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.search-field label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  text-align: left;
  font-weight: 600;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 14px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background: white;
  transition: border-color 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: #007bff;
}

.search-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.btn-search {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 0 35px;
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-search:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-search:active {
  transform: translateY(0);
}

/* ================= DESTINATIONS ================= */
.destinations {
  padding: 80px 20px;
  text-align: center;
  background: #f9f9f9;
}

.destinations h2 {
  font-size: 36px;
  color: #1e5a8e;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.destination-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.destination-card:hover img {
  transform: scale(1.05);
}

.destination-card span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
}

.destination-card:hover span {
  background: rgba(30, 90, 142, 0.9);
}

/* ================= OFFERS ================= */
.offers {
  max-width: 1200px;
  margin: 50px auto;
  padding: 50px 30px;
  background-color: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.offers h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 35px;
  line-height: 1.5;
}

.offers ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.offers ul li {
  background-color: #ffffff;
  padding: 22px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 350px;
}

.offers ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.facilities {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.facilities img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.facilities img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ================= RESPONSIVE BREAKPOINTS ================= */

/* Large Desktop */
@media (max-width: 1400px) {
  .search-box {
    width: 90%;
    padding: 22px;
  }
}

/* Desktop to Tablet */
@media (max-width: 1024px) {
  .hero-text {
    margin-top: 100px;
  }
  
  .hero-text h1 {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .search-box {
    gap: 15px;
    padding: 20px;
  }
  
  .search-field {
    min-width: 160px;
  }
  
  .destinations h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .destination-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .destination-card {
    height: 280px;
  }
  
  .offers {
    padding: 40px 25px;
  }
  
  .offers h2 {
    font-size: 1.75rem;
  }
  
  .facilities img {
    width: 240px;
    height: 160px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .flash-messages {
    width: 95%;
    top: 15px;
  }
  
  .flash-message {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .flash-message::before {
    font-size: 20px;
  }
  
  .flash-close {
    font-size: 18px;
    padding: 3px 8px;
  }
  
  .hero {
    min-height: 550px;
  }
  
  .hero-overlay {
    padding: 50px 15px 80px 15px;
  }
  
  .hero-text {
    margin-top: 80px;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .stars {
    font-size: 18px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  /* Search box stacks vertically */
  .search-box {
    flex-direction: column;
    width: 95%;
    gap: 15px;
    align-items: stretch;
    padding: 20px 18px;
  }
  
  .search-field {
    min-width: 100%;
  }
  
  .btn-search {
    align-self: stretch;
    width: 100%;
    height: 48px;
  }
  
  /* Destinations */
  .destinations {
    padding: 60px 15px;
  }
  
  .destinations h2 {
    font-size: 28px;
    margin-bottom: 35px;
  }
  
  .destination-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .destination-card {
    height: 260px;
  }
  
  .destination-card span {
    font-size: 16px;
    padding: 8px 16px;
    bottom: 15px;
    left: 15px;
  }
  
  /* Offers */
  .offers {
    margin: 40px 15px;
    padding: 35px 20px;
  }
  
  .offers h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .offers ul {
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .offers ul li {
    min-width: 100%;
    max-width: 100%;
    padding: 18px 22px;
    font-size: 14px;
  }
  
  .facilities {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .facilities img {
    width: 100%;
    max-width: 400px;
    height: 200px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .flash-messages {
    top: 10px;
  }
  
  .flash-message {
    padding: 12px 16px;
    font-size: 13px;
    gap: 10px;
  }
  
  .flash-message::before {
    font-size: 18px;
  }
  
  .flash-close {
    font-size: 16px;
    padding: 2px 7px;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero-overlay {
    padding: 40px 12px 60px 12px;
  }
  
  .hero-text {
    margin-top: 60px;
  }
  
  .hero-text h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }
  
  .stars {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-description {
    font-size: 13px;
  }
  
  .search-box {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 10px;
  }
  
  .search-field label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .search-field input,
  .search-field select {
    padding: 12px;
    font-size: 14px;
  }
  
  .btn-search {
    font-size: 15px;
    height: 46px;
  }
  
  .destinations {
    padding: 50px 12px;
  }
  
  .destinations h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .destination-grid {
    gap: 15px;
  }
  
  .destination-card {
    height: 220px;
  }
  
  .destination-card span {
    font-size: 15px;
    padding: 7px 14px;
    bottom: 12px;
    left: 12px;
  }
  
  .offers {
    margin: 30px 12px;
    padding: 30px 16px;
    border-radius: 12px;
  }
  
  .offers h2 {
    font-size: 1.25rem;
    margin-bottom: 25px;
  }
  
  .offers ul {
    gap: 12px;
    margin-bottom: 25px;
  }
  
  .offers ul li {
    padding: 16px 18px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .facilities {
    gap: 15px;
  }
  
  .facilities img {
    height: 180px;
    border-radius: 10px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 24px;
  }
  
  .stars {
    font-size: 14px;
  }
  
  .hero-subtitle {
    font-size: 13px;
  }
  
  .hero-description {
    font-size: 12px;
  }
  
  .search-box {
    padding: 14px 12px;
  }
  
  .search-field input,
  .search-field select {
    padding: 10px;
    font-size: 13px;
  }
  
  .btn-search {
    font-size: 14px;
    height: 44px;
  }
  
  .destinations h2 {
    font-size: 22px;
  }
  
  .destination-card {
    height: 200px;
  }
  
  .destination-card span {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .offers h2 {
    font-size: 1.1rem;
  }
  
  .offers ul li {
    padding: 14px 16px;
    font-size: 12px;
  }
  
  .facilities img {
    height: 160px;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .hero-overlay {
    padding: 30px 15px 50px 15px;
  }
  
  .hero-text {
    margin-top: 40px;
  }
  
  .hero-text h1 {
    font-size: 32px;
  }
  
  .search-box {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px;
  }
  
  .search-field {
    flex: 1 1 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }
  
  .btn-search {
    flex: 1 1 100%;
    margin-top: 5px;
  }
}