/* =============================================
   Arrange My Stay - OTA Hotel Booking Styles
   Base: #ffffff | Primary: #0a2463 | Secondary: #d4a017
   ============================================= */

:root {
  --color-base: #ffffff;
  --color-primary: #0a2463;
  --color-primary-light: #1a3a7a;
  --color-primary-dark: #061a4a;
  --color-secondary: #d4a017;
  --color-secondary-light: #e8b830;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-bg-page: #f3f4f6;
  --color-bg-card: #ffffff;
  --color-success: #059669;
  --color-perk: #0d7377;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-base);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  border-bottom: 1px solid var(--color-border);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 20px;
}
.logo img {
  height: 40px !important;
}

footer .logo img {
  height: 30px !important;
}

.logo-icon {
  font-size: 24px;
}

.logo-accent {
  color: var(--color-secondary);
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ---- Main Layout ---- */
.main-content {
  padding: 24px 0 48px;
}

/* ---- Results Header ---- */
.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.results-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.results-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.sort-dropdown select {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-base);
  cursor: pointer;
}

/* ---- Hotel Cards ---- */
.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hotel-card {
  display: grid;
  grid-template-columns: 240px 1fr 180px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.hotel-card:hover {
  box-shadow: var(--shadow-md);
}

/* Media Section & Auto Slider */
.hotel-card__media {
  position: relative;
  min-height: 200px;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.hotel-card__media .slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider-track img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  min-height: 200px;
  flex-shrink: 0;
}

/* Slider Navigation Buttons (Next / Prev) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 4;
  opacity: 0;
}

.hotel-card__media:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.1);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.slider-btn--prev {
  left: 8px;
}

.slider-btn--next {
  right: 8px;
}

.media-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}

.media-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
}

.media-dots span:hover {
  background: rgba(255, 255, 255, 0.9);
}

.media-dots span.active {
  background: #ffffff;
  width: 14px;
  border-radius: 4px;
}

.media-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 4;
  cursor: pointer;
}

/* Info Section */
.hotel-card__info {
  padding: 16px 20px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hotel-card__header {
  margin-bottom: 2px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-property-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  width: fit-content;
}

.badge-property-type.badge-hotel {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  box-shadow: 0 2px 5px rgba(10, 36, 99, 0.2);
}

.badge-property-type.badge-homestay {
  background: var(--color-perk);
  color: #ffffff;
  border: 1px solid var(--color-perk);
  box-shadow: 0 2px 5px rgba(13, 115, 119, 0.2);
}

.hotel-name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.hotel-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.hotel-location {
  font-size: 13px;
  color: var(--color-text-muted);
}

.hotel-location a {
  font-weight: 600;
}

.hotel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  width: fit-content;
}

.hotel-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0;
  list-style: none;
}

.hotel-perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--color-text);
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

.hotel-perks li i {
  color: var(--color-secondary);
  font-size: 12px;
  flex-shrink: 0;
}

.hotel-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: auto;
  padding-top: 4px;
}

/* Pricing Section */
.hotel-card__pricing {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  background: #ffffff;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.price-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.price-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.btn-book-now {
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  background: var(--color-secondary);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-book-now:hover {
  background: var(--color-secondary-light);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.35);
}

/* ---- Booking Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--color-base);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.08);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.modal-hotel {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.modal-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.modal-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-page);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-secondary);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}

.contact-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.contact-item a:hover {
  color: var(--color-secondary);
}

.modal-note {
  font-size: 12px;
  color: var(--color-text-light);
  text-align: center;
}

/* ---- About Us Modal ---- */
.modal--about {
  max-width: 580px;
}

.modal-about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 20px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg-page);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.about-feature-item:hover {
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-feature-item i {
  color: var(--color-secondary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.about-feature-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.about-feature-item p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.social-links a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

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

.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.payment-icons {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   Responsive Breakpoints
   ============================================= */

@media (max-width: 768px) {
  .slider-btn {
    opacity: 0.85;
  }
}

@media (max-width: 1024px) {
  .hotel-card {
    grid-template-columns: 200px 1fr 160px;
  }
}

@media (max-width: 900px) {
  .hotel-card {
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto;
  }

  .hotel-card__pricing {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding: 14px 20px;
    text-align: left;
  }

  .price-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  .price-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .price-block .btn-book-now {
    width: auto;
    margin-top: 0;
    padding: 10px 24px;
    white-space: nowrap;
  }

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

@media (max-width: 640px) {
  .results-header {
    flex-direction: column;
  }

  .hotel-card {
    grid-template-columns: 1fr;
  }

  .hotel-card__media {
    min-height: 180px;
    height: 200px;
  }

  .hotel-card__info {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .hotel-card__pricing {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .price-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .price-details {
    align-items: flex-start;
    text-align: left;
  }

  .price-block .btn-book-now {
    width: auto;
    margin-top: 0;
  }

  .hotel-name-row {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .modal-about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 24px 18px;
    max-height: 88vh;
  }

  .modal-title {
    font-size: 19px;
  }

  .price-block {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .price-block .btn-book-now {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .logo-text {
    font-size: 16px;
  }

  .price {
    font-size: 18px;
  }
}
