/* ============================================================
   GEORGIA TRIPS — Mobile Responsive Styles
   Covers all breakpoints: 768px, 600px, 480px, 380px
   ============================================================ */

/* ===== TABLET (max-width: 768px) ===== */
@media (max-width: 768px) {

  /* ── NAVBAR ── */
  .navbar {
    padding: 0 1rem;
    height: 60px;
  }

  .nav-logo {
    font-size: 1.2rem;
    gap: 6px;
  }

  .nav-logo .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 60, 93, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 1.5rem 2rem;
    gap: 0.25rem;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0;
    background: rgba(11, 60, 93, 0.6);
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
  }

  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
  }

  .dropdown-menu a {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .nav-lang-dropdown {
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-lang-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .lang-dropdown-menu {
    min-width: 100%;
    right: auto;
    left: 0;
  }

  .nav-user-dropdown {
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-user-btn {
    width: 100%;
    text-align: center;
    max-width: none !important;
  }

  .nav-user-dropdown .dropdown-menu {
    right: auto;
    left: 0;
  }

  /* ── HERO ── */
  .hero {
    min-height: 75vh;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-scroll {
    display: none;
  }

  /* ── SECTIONS ── */
  section {
    padding: 3rem 1rem;
    border-radius: 18px;
  }

  section:not(.hero) {
    border-radius: 18px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* ── SLIDER ARROWS ── */
  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }

  .tours-slider-wrapper .slider-arrow-left,
  .cars-slider-wrapper .slider-arrow-left {
    left: 4px;
  }

  .tours-slider-wrapper .slider-arrow-right,
  .cars-slider-wrapper .slider-arrow-right {
    right: 4px;
  }

  /* ── FEATURED SECTION ── */
  .featured-slider-wrapper {
    gap: 0.5rem;
  }

  .featured-card {
    height: auto;
    min-height: auto;
  }

  .featured-card.active {
    grid-template-columns: 1fr;
    display: grid;
  }

  .featured-img {
    min-height: 220px;
    max-height: 260px;
  }

  .featured-body {
    padding: 1.25rem;
  }

  .featured-body h3,
  .featured-title {
    font-size: 1.2rem;
  }

  .featured-body p,
  .featured-description {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
  }

  .featured-ribbon {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    top: -4px;
    right: -4px;
  }

  .featured-cta {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  /* ── BATUMI SECTION ── */
  .batumi-slide {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .batumi-card {
    min-height: auto;
  }

  .batumi-img {
    min-height: 180px;
  }

  .batumi-body {
    padding: 1.25rem;
  }

  .batumi-title {
    font-size: 1.2rem !important;
  }

  .batumi-desc {
    font-size: 0.88rem !important;
    min-height: auto !important;
    margin-bottom: 1rem !important;
  }

  .batumi-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .batumi-cta {
    width: 100%;
    text-align: center;
    display: block;
  }

  .batumi-price-value {
    font-size: 1.2rem !important;
  }

  /* ── TOUR CARDS (horizontal scroll) ── */
  .domestic-tours-grid .tour-card,
  .international-tours-grid .tour-card {
    flex: 0 0 260px;
    min-height: 360px;
  }

  .tour-card-img {
    height: 170px;
  }

  .tour-card-body {
    padding: 1rem 1.1rem 1.25rem;
  }

  .tour-card-title {
    font-size: 0.95rem;
  }

  .tour-card-desc {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .tour-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tour-card-footer .btn-sm {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── TRANSPORT SECTION ── */
  .transport-hero {
    padding: 2rem 0 3rem;
  }

  .transport-hero__title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .transport-hero__desc {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  /* ── STORIES / POSTS GRID ── */
  .posts-grid {
    grid-template-columns: 1fr;
  }

  #stories-grid {
    grid-template-columns: 1fr;
  }

  #stories-grid .post-card:nth-child(n+4) {
    display: block;
  }

  #stories-grid .post-card:nth-child(n+3) {
    display: none;
  }

  .post-card-img {
    height: 180px;
  }

  .post-card-body {
    padding: 1.1rem;
  }

  /* ── REVIEWS ── */
  .reviews-section {
    padding: 3rem 1rem !important;
  }

  .reviews-slider {
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .google-review {
    min-width: 260px;
    padding: 1.25rem;
  }

  .review-text {
    font-size: 0.85rem;
  }

  /* ── MAP SECTION ── */
  .map-svg-wrapper {
    padding: 1rem 0.5rem 2rem;
    aspect-ratio: auto;
  }

  .georgia-map-frame,
  .georgia-map-img {
    border-radius: 16px;
  }

  .map-pin {
    display: none;
  }

  .map-region-label {
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
    min-width: 140px;
  }

  /* ── WEATHER ── */
  .weather-section {
    padding: 2.5rem 1rem;
  }

  .weather-widget {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
  }

  .weather-temp {
    font-size: 3rem;
  }

  .weather-left .city {
    font-size: 1.4rem;
  }

  .weather-icon-large {
    font-size: 3.5rem;
  }

  .weather-details {
    justify-content: center;
    gap: 1.5rem;
  }

  /* ── FOOTER ── */
  .footer {
    padding: 2rem 1.25rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 1.25rem;
  }

  /* ── MODAL ── */
  .modal {
    max-width: 100%;
    padding: 1.5rem;
    border-radius: 16px;
    margin: 0.5rem;
  }

  .modal h3 {
    font-size: 1.2rem;
    padding-right: 2rem;
  }

  .modal .price {
    font-size: 1.2rem;
  }

  .modal p {
    font-size: 0.88rem;
  }

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

  /* ── PAGE HERO (inner pages) ── */
  .page-hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-hero p {
    font-size: 0.9rem;
  }

  /* ── ABOUT PAGE ── */
  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-img-wrap img {
    height: 280px;
  }

  .about-img-accent {
    right: 0.5rem;
    bottom: 1rem;
    padding: 0.8rem 1rem;
  }

  .about-img-accent .num {
    font-size: 1.5rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

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

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

  /* ── CONTACT PAGE ── */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* ── CARS PAGE ── */
  .cars-stack {
    grid-template-columns: 1fr;
  }

  /* ── TOAST ── */
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
  }

  /* ── WHATSAPP FLOAT ── */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* ── VIEW ALL BUTTON ── */
  .btn-view-all {
    font-size: 0.82rem;
    padding: 0.75rem 1.5rem;
  }

  /* ── TOURS PAGE (tours-page.css overrides) ── */
  #tours-filter-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .filter-section {
    padding: 0 0 3rem;
  }

  .filter-section .section-header {
    padding: 2.5rem 1rem 0;
  }

  .filter-tabs-wrapper {
    margin: 0 1rem;
  }

  .category-bar {
    margin: 0 1rem 1.5rem;
  }

  .tours-meta-row {
    padding: 0 1rem;
  }

  #tours-filter-grid {
    padding: 0 1rem;
  }
}

/* ===== SMALL PHONE (max-width: 480px) ===== */
@media (max-width: 480px) {

  /* ── NAVBAR ── */
  .navbar {
    height: 56px;
    padding: 0 0.75rem;
  }

  .nav-logo {
    font-size: 1.05rem;
    gap: 5px;
  }

  .nav-logo .logo-icon {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    width: 100%;
    right: -100%;
  }

  .nav-links.open {
    right: 0;
  }

  /* ── HERO ── */
  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hero p {
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }

  /* ── SECTIONS ── */
  section {
    padding: 2.5rem 0.75rem;
    border-radius: 14px;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-tag {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }

  /* ── FEATURED ── */
  .featured-slider-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }

  .featured-slider-wrapper > .slider-arrow {
    display: none;
  }

  .featured-img {
    min-height: 180px;
    max-height: 220px;
  }

  .featured-body {
    padding: 1rem;
  }

  .featured-body h3,
  .featured-title {
    font-size: 1.05rem;
  }

  .featured-body::after {
    display: none;
  }

  .featured-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .featured-price {
    text-align: left;
  }

  .featured-features {
    margin-bottom: 0.8rem;
  }

  .features-grid {
    gap: 0.35rem;
  }

  .tour-highlight {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .action-badges {
    flex-direction: column;
    gap: 0.3rem;
  }

  /* ── BATUMI ── */
  .batumi-img {
    min-height: 160px;
  }

  .batumi-body {
    padding: 1rem;
  }

  .batumi-title {
    font-size: 1.05rem !important;
  }

  .batumi-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* ── TOUR CARDS ── */
  .domestic-tours-grid .tour-card,
  .international-tours-grid .tour-card {
    flex: 0 0 240px;
    min-height: 340px;
  }

  .tour-card-img {
    height: 150px;
  }

  .tour-card-body {
    padding: 0.85rem 1rem 1rem;
  }

  .tour-card-title {
    font-size: 0.88rem;
  }

  .tour-card-desc {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .tour-price-container {
    font-size: 0.85rem;
  }

  /* ── TRANSPORT ── */
  .transport-photos-row {
    gap: 0;
    padding: 0 0.5rem 1rem;
  }

  .transport-photo {
    flex: 0 0 80vw !important;
    width: 80vw !important;
  }

  .transport-photo img {
    height: 220px;
  }

  /* ── STORIES ── */
  #stories-grid .post-card:nth-child(n+3) {
    display: none;
  }

  .post-card-img {
    height: 160px;
  }

  /* ── REVIEWS ── */
  .google-review {
    min-width: 220px;
    padding: 1rem;
  }

  .reviewer-info h4 {
    font-size: 0.85rem;
  }

  .review-text {
    font-size: 0.82rem;
  }

  /* ── MAP ── */
  .map-svg-wrapper {
    padding: 0.5rem 0 1rem;
  }

  .georgia-map-frame,
  .georgia-map-img {
    border-radius: 12px;
  }

  /* ── WEATHER ── */
  .weather-widget {
    padding: 1.25rem;
  }

  .weather-temp {
    font-size: 2.5rem;
  }

  .weather-left .city {
    font-size: 1.2rem;
  }

  .weather-icon-large {
    font-size: 2.8rem;
  }

  /* ── FOOTER ── */
  .footer {
    padding: 1.75rem 1rem 1rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }

  .footer-col h4 {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
  }

  .footer-col ul a,
  .footer-contact-item span {
    font-size: 0.82rem;
  }

  .social-btn {
    width: 34px;
    height: 34px;
  }

  .social-btn svg {
    width: 16px;
    height: 16px;
  }

  /* ── MODAL ── */
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .modal h3 {
    font-size: 1.1rem;
  }

  /* ── ABOUT ── */
  .about-img-wrap img {
    height: 220px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-box {
    padding: 0.75rem 0.5rem;
  }

  .stat-box .num {
    font-size: 1.4rem;
  }

  .stat-box p {
    font-size: 0.72rem;
  }

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

  /* ── CONTACT ── */
  .contact-form {
    padding: 1.25rem;
  }

  .contact-form h3 {
    font-size: 1.1rem;
  }

  /* ── CARS ── */
  .car-full-card {
    grid-template-columns: 1fr !important;
  }

  /* ── PAGE HERO ── */
  .page-hero {
    padding: 3rem 1rem 2rem;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  /* ── VIEW ALL ── */
  .btn-view-all {
    font-size: 0.78rem;
    padding: 0.65rem 1.25rem;
  }

  .btn-primary {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }

  .btn-outline {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }
}

/* ===== VERY SMALL PHONE (max-width: 380px) ===== */
@media (max-width: 380px) {
  .navbar {
    height: 52px;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-logo .logo-icon {
    width: 36px;
    height: 36px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.82rem;
  }

  section {
    padding: 2rem 0.6rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .featured-img {
    min-height: 150px;
    max-height: 180px;
  }

  .batumi-img {
    min-height: 140px;
  }

  .domestic-tours-grid .tour-card,
  .international-tours-grid .tour-card {
    flex: 0 0 220px;
    min-height: 320px;
  }

  .tour-card-img {
    height: 130px;
  }

  .transport-photo {
    flex: 0 0 85vw !important;
    width: 85vw !important;
  }

  .transport-photo img {
    height: 180px;
  }

  .footer-grid {
    gap: 1rem;
  }

  .modal {
    padding: 1rem;
  }

  .weather-temp {
    font-size: 2rem;
  }

  .about-img-wrap img {
    height: 180px;
  }

  .about-img-accent {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -2rem;
    margin-left: 1rem;
    display: inline-block;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that cause sticky states on touch */
  .tour-card:hover {
    transform: none;
  }

  .tour-card:active {
    transform: scale(0.98);
  }

  .batumi-card:hover {
    transform: none;
  }

  .post-card:hover {
    transform: none;
  }

  .featured-card:hover .featured-overlay {
    opacity: 1;
  }

  .featured-card:hover .featured-img img {
    transform: none;
  }

  /* Make scrollable areas easier to swipe */
  .domestic-tours-grid,
  .international-tours-grid,
  .reviews-slider,
  .transport-photos-row {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .domestic-tours-grid::-webkit-scrollbar,
  .international-tours-grid::-webkit-scrollbar,
  .reviews-slider::-webkit-scrollbar {
    display: none;
  }
}

/* ===== LANDSCAPE PHONE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .nav-links {
    padding-top: 60px;
  }
}

/* ===== SAFE AREA (NOTCH) SUPPORT ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }

  .toast {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .modal-backdrop {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ===== PREVENT OVERFLOW ===== */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent long text from breaking layout */
.tour-card-title,
.batumi-title,
.featured-title,
.post-card-title,
.car-card-title {
  overflow-wrap: break-word;
  word-break: break-word;
}
