/**
 * Main CSS for VIP's Access Concierge Services
 * Cross-browser compatible implementation
 */

/* Base styles with cross-browser compatibility */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

/* Cross-browser flexbox support */
.flex-container {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.flex-column {
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.flex-row {
  -webkit-box-orient: horizontal;
  -moz-box-orient: horizontal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
}

.flex-wrap {
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.flex-center {
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -moz-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.flex-space-between {
  -webkit-box-pack: justify;
  -moz-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.flex-item {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/* Header styles */
header {
  color: #fff;
  padding: 1rem;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -moz-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -moz-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  z-index:300; !important 
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6600;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
}

.main-nav a:hover {
  color: #ff6600;
}

/* Hero section */
.hero {
  color: #fff;
  padding: 1rem 1rem;
  text-align: center;
  min-height: 300px;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -moz-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Search form */
.search-form {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 5px;
  max-width: 1000px;
  margin: -50px auto 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.search-form form {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -moz-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.form-group {
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -webkit-flex: 1 0 200px;
  -ms-flex: 1 0 200px;
  flex: 1 0 200px;
  margin: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Date input styling for all browsers */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23333" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* jQuery UI datepicker customization */
.ui-datepicker {
  font-size: 14px;
  z-index: 1000 !important;
}

.date-input-wrapper {
  position: relative;
  width: 100%;
}

.date-input-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: none; /* Allow clicks to pass through to the input */
}

/* Select styling for IE and Edge */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
}

/* Search button */
.search-btn {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

.search-btn:hover {
  background-color: #e65c00;
}

/* Destinations section */
.destinations {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.destinations h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.destination-grid {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1rem;
  /* Fallback for browsers that don't support gap */
  margin: -0.5rem;
}

/* IE specific fixes for flex grid */
.ie-flex-fix {
  display: block;
  text-align: center;
}

.ie-flex-fix:after {
  content: "";
  display: table;
  clear: both;
}

.ie-flex-item-fix {
  float: left;
  margin: 0.5rem;
  width: calc(20% - 1rem);
}

.destination-item {
  -webkit-box-flex: 0;
  -moz-box-flex: 0;
  -webkit-flex: 0 0 calc(20% - 1rem);
  -ms-flex: 0 0 calc(20% - 1rem);
  flex: 0 0 calc(20% - 1rem);
  background-color: #0099cc;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin: 0.5rem;
}

.destination-item:hover {
  background-color: #007399;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  header {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav {
    margin-top: 1rem;
  }
  
  .main-nav ul {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav li {
    margin: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .destination-item,
  .ie-flex-item-fix {
    -webkit-flex: 0 0 calc(50% - 1rem);
    -ms-flex: 0 0 calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
    width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .destination-item,
  .ie-flex-item-fix {
    -webkit-flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    width: 100%;
  }
}
