/* ============================================================
   KhivaGo responsive styles
   Breakpoints: 1200 / 992 / 768 / 576
   ============================================================ */

@media (max-width: 1200px) {
  .section-pad {
    padding: 88px 0;
  }

  .hero-text-col {
    padding: 150px 0 72px;
  }

  .hero-title {
    font-size: clamp(3rem, 6vw, 4.4rem);
  }

  .place-card--large {
    height: 460px;
  }

  .place-card--sm,
  .place-card--xs {
    height: 220px;
  }

  .contact-hero-title,
  .events-hero-title,
  .guides-hero-title,
  .hotels-hero-title,
  .places-hero-title,
  .restaurants-hero-title,
  .taxi-hero-title,
  .tours-hero-title,
  .event-detail-title,
  .guide-detail-title,
  .detail-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
  }
}

@media (max-width: 380px) {
  .kg-mobile-scroll > .kg-scroll-col,
  #places .place-mobile-col {
    flex-basis: 320px;
    width: 320px;
    max-width: 320px;
  }

  #services .service-col {
    flex-basis: 280px;
    width: 280px;
    max-width: 280px;
  }

  #services .service-card {
    padding: 18px 16px;
  }
}

@media (max-width: 992px) {
  #mainNav {
    padding: 10px 0;
  }

  .navbar-toggler {
    padding: 8px 4px;
    box-shadow: none;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  #navMenu {
    background: rgba(26, 44, 66, 0.97);
    backdrop-filter: blur(16px);
    margin-top: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }

  .navbar-nav {
    gap: 4px !important;
  }

  .navbar-nav .nav-link {
    padding: 10px 16px;
  }

  .lang-switcher {
    width: 100%;
    margin: 16px 0 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .kg-mobile-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 4px 12px 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .kg-mobile-scroll::-webkit-scrollbar {
    display: none;
  }

  #hotels .section-header,
  #guides .section-header,
  #places .section-header,
  #tours-section .section-header,
  #restaurants .section-header,
  #events .section-header,
  #testimonials .section-header {
    max-width: none;
    text-align: left !important;
  }

  .kg-mobile-scroll > .kg-scroll-col,
  #places .place-mobile-col {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  #places .places-stack,
  #places .places-stack-row {
    display: contents;
  }

  #hotels .hotel-card,
  #guides .guide-card,
  #tours-section .tour-card,
  #restaurants .rest-card,
  #events .event-card,
  #testimonials .testi-card {
    min-height: 100%;
  }

  #hotels .hotel-img,
  #guides .guide-media,
  #tours-section .tour-img-wrap,
  #restaurants .rest-img {
    height: 170px;
  }

  #hotels .hotel-body,
  #guides .guide-body,
  #tours-section .tour-body,
  #restaurants .rest-body,
  #events .event-body {
    padding: 20px;
  }

  #hotels .hotel-body h4,
  #guides .guide-body h4,
  #tours-section .tour-title,
  #restaurants .rest-top h4,
  #events .event-body h4 {
    font-size: 1.12rem;
  }

  #hotels .hotel-loc,
  #guides .guide-role,
  #guides .guide-meta span,
  #guides .guide-desc,
  #tours-section .tour-desc,
  #restaurants .rest-body > p,
  #events .event-body p,
  #testimonials .testi-text {
    font-size: .84rem;
    line-height: 1.55;
  }

  #hotels .hotel-footer,
  #guides .guide-footer,
  #tours-section .tour-footer {
    gap: 10px;
  }

  #places .place-card,
  #places .place-card--large,
  #places .place-card--sm,
  #places .place-card--xs {
    height: 370px;
  }

  #places .place-overlay {
    padding: 20px;
  }

  #places .place-overlay h3,
  #places .place-card--xs .place-overlay h3 {
    font-size: 1.2rem;
  }

  #places .place-overlay p {
    display: block;
    font-size: .8rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  #testimonials .testi-card {
    padding: 24px 22px;
  }

  .hero-image-col {
    display: none;
  }

  .hero-text-col {
    padding: 138px 0 64px;
    text-align: center;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-image-block {
    padding: 0;
  }

  .why-img-main {
    height: 320px;
  }

  .taxi-visual {
    padding: 0 0 28px;
  }

  .taxi-visual img {
    height: 360px;
  }

  .taxi-card-float {
    left: 18px;
    bottom: 0;
  }

  .booking-sidebar,
  .booking-card,
  .info-sidebar {
    position: static;
  }

  .detail-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .detail-title-row,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-title-row,
  .detail-layout {
    display: block;
  }

  .detail-price-pill {
    margin-top: 22px;
    text-align: left;
  }

  .highlight-grid,
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hotel-search-btn {
    grid-column: span 2;
  }

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

  .hotel-row-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 0 24px 24px;
  }

  .review-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 64px 0;
  }

  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .section-sub {
    font-size: 0.96rem;
  }

  .hero-text-col {
    padding: 124px 0 56px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
    line-height: 1.02;
  }

  .hero-desc,
  .contact-hero-text,
  .events-hero-text,
  .guides-hero-text,
  .hotels-hero-text,
  .places-hero-text,
  .restaurants-hero-text,
  .taxi-hero-text,
  .tours-hero-text {
    font-size: 0.98rem;
  }

  #services .service-section-header {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    text-align: left !important;
  }

  #services .section-tag {
    margin-bottom: 10px;
  }

  #services .section-title {
    margin-bottom: 6px;
  }

  #services .section-sub {
    margin-bottom: 0;
  }

  #services .service-see-all {
    display: inline-flex;
    flex-shrink: 0;
    margin-bottom: 6px;
  }

  #services .service-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 4px 12px 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #services .service-grid::-webkit-scrollbar {
    display: none;
  }

  #services .service-col {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  #services .service-card {
    min-height: 220px;
    padding: 24px 22px;
    border-radius: 20px;
  }

  #services .sc-icon-wrap {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
  }

  #services .sc-title {
    font-size: 1.18rem;
    margin-bottom: 8px;
  }

  #services .sc-desc {
    font-size: .86rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions > * {
    justify-content: center;
    width: 100%;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

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

  .contact-hero,
  .events-hero,
  .guides-hero,
  .hotels-hero,
  .places-hero,
  .restaurants-hero,
  .taxi-hero,
  .tours-hero,
  .profile-hero,
  .detail-hero,
  .place-detail-hero,
  .restaurant-detail-hero,
  .taxi-detail-hero,
  .tour-detail-hero,
  .event-detail-hero {
    padding-top: 118px;
  }

  .contact-main {
    padding-top: 52px;
  }

  .contact-hero-title,
  .events-hero-title,
  .guides-hero-title,
  .hotels-hero-title,
  .places-hero-title,
  .restaurants-hero-title,
  .taxi-hero-title,
  .tours-hero-title,
  .event-detail-title,
  .detail-title {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .detail-gallery,
  .hotel-search-strip,
  .hotel-row-card,
  .highlight-grid,
  .amenities-grid,
  .room-card {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:first-child {
    min-height: 230px;
    grid-column: auto;
    grid-row: auto;
  }

  .results-top,
  .hotel-row-side,
  .hotel-footer,
  .guide-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hotel-search-btn {
    grid-column: auto;
  }

  .hotel-row-media {
    min-height: 230px;
  }

  .hotel-row-body {
    padding: 24px 20px 18px;
  }

  .hotel-row-side {
    padding: 0 20px 22px;
  }

  .hotel-row-price,
  .room-price {
    text-align: left;
  }

  .availability-btn,
  .btn-hotel,
  .btn-guide {
    width: 100%;
  }

  .guide-media,
  .guide-avatar {
    height: 230px;
  }

  .tour-cover,
  .restaurant-cover,
  .place-cover,
  .event-cover {
    height: 220px;
  }

  .detail-panel {
    padding: 22px;
  }

  .taxi-opt {
    padding: 16px;
  }

  .taxi-visual img {
    height: 300px;
    border-radius: var(--radius-lg);
  }

  .taxi-card-float {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -34px 16px 0;
  }

  .route-pin.start {
    left: 8%;
  }

  .route-pin.end {
    right: 8%;
  }

  #places .col-6 {
    width: 100%;
  }

  .review-section {
    padding: 22px;
  }

  .review-grid,
  .review-form-grid {
    grid-template-columns: 1fr;
  }

  .review-form-grid--simple > .review-field--full:nth-of-type(2),
  .review-form-grid--simple > .review-field--full:nth-of-type(3) {
    grid-column: 1;
    grid-row: auto;
  }

  .review-score {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: 16px;
    white-space: normal;
  }

  .review-images img {
    width: 124px;
    height: 86px;
  }

  .review-toggle {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 1.4rem;
  }

  .section-pad {
    padding: 56px 0;
  }

  .hero-text-col {
    padding: 112px 0 48px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 11vw, 2.6rem);
  }

  .section-title {
    font-size: clamp(1.75rem, 9vw, 2.1rem);
  }

  .kg-mobile-scroll {
    gap: 14px;
    padding-bottom: 14px;
  }

  .kg-mobile-scroll > .kg-scroll-col,
  #places .place-mobile-col {
    flex-basis: 360px;
    width: 360px;
    max-width: 360px;
  }

  #hotels .hotel-img,
  #guides .guide-media,
  #tours-section .tour-img-wrap,
  #restaurants .rest-img {
    height: 250px;
  }

  #hotels .hotel-body,
  #guides .guide-body,
  #tours-section .tour-body,
  #restaurants .rest-body,
  #events .event-body {
    padding: 18px;
  }

  #hotels .hotel-body h4,
  #guides .guide-body h4,
  #tours-section .tour-title,
  #restaurants .rest-top h4,
  #events .event-body h4 {
    font-size: 1.08rem;
  }

  #hotels .hotel-loc,
  #guides .guide-role,
  #guides .guide-meta span,
  #guides .guide-desc,
  #tours-section .tour-desc,
  #restaurants .rest-body > p,
  #events .event-body p,
  #testimonials .testi-text {
    font-size: .82rem;
    line-height: 1.5;
  }

  #hotels .hotel-amenities {
    gap: 6px;
    margin-bottom: 16px;
  }

  #hotels .hotel-amenities > span {
    padding: 4px 8px;
    font-size: .68rem;
  }

  #guides .guide-meta {
    gap: 6px;
  }

  #hotels .hotel-footer,
  #guides .guide-footer,
  #tours-section .tour-footer,
  #restaurants .rest-info {
    flex-direction: column;
    align-items: flex-start;
  }

  #hotels .btn-hotel,
  #guides .btn-guide,
  #tours-section .btn-sm-khiva,
  #restaurants .btn-outline-rest {
    width: 100%;
    padding: 10px 15px;
    font-size: .8rem;
  }

  #events .event-date-block {
    padding: 18px;
  }

  #events .event-day {
    font-size: 2rem;
  }

  #places .place-card,
  #places .place-card--large,
  #places .place-card--sm,
  #places .place-card--xs {
    height: 375px;
  }

  #places .place-overlay {
    padding: 18px;
  }

  #places .place-overlay h3,
  #places .place-card--xs .place-overlay h3 {
    font-size: 1.14rem;
  }

  #places .place-overlay p {
    font-size: .8rem;
  }

  #testimonials .testi-card {
    padding: 22px 20px;
  }

  #services .service-section-header {
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  #services .section-tag {
    padding: 4px 12px;
    font-size: .68rem;
    margin-bottom: 8px;
  }

  #services .section-title {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    line-height: 1.18;
  }

  #services .section-sub {
    display: none;
  }

  #services .service-see-all {
    font-size: .8rem;
    margin-bottom: 0;
  }

  #services .service-grid {
    gap: 14px;
    padding-bottom: 14px;
  }

  #services .service-col {
    flex-basis: 300px;
    width: 300px;
    max-width: 300px;
  }

  #services .service-card {
    min-height: 220px;
    padding: 22px 20px;
    border-radius: 18px;
  }

  #services .sc-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 1.18rem;
    margin-bottom: 14px;
  }

  #services .sc-title {
    font-size: 1.12rem;
  }

  #services .sc-desc {
    font-size: .84rem;
    line-height: 1.5;
  }

  #services .sc-link {
    font-size: .82rem;
  }

  .contact-hero-title,
  .events-hero-title,
  .guides-hero-title,
  .hotels-hero-title,
  .places-hero-title,
  .restaurants-hero-title,
  .taxi-hero-title,
  .tours-hero-title,
  .event-detail-title,
  .detail-title {
    font-size: clamp(1.95rem, 10vw, 2.7rem);
  }

  .hero-stats {
    gap: 10px;
  }

  .place-card--large {
    height: 380px;
  }

  .place-card--sm,
  .place-card--xs {
    height: 210px;
  }

  .detail-panel,
  .card-body,
  .booking-card,
  .soft-card .card-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .date-tile,
  .event-date-block {
    min-width: 64px;
  }

  .footer-newsletter {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-btn {
    width: 100%;
    border-radius: 999px;
  }

  .review-section {
    padding: 18px;
  }

  .review-card,
  .review-form {
    padding: 18px;
  }

  .review-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .review-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-images img {
    width: 100%;
    height: 92px;
  }

  .review-submit {
    width: 100%;
  }

  .review-star-input {
    gap: 8px;
  }

  .review-star-input label {
    font-size: 1.6rem;
  }
}
