/* ===== Responsive CSS สำหรับหน้าจอขนาดต่างๆ ===== */

/* Additional Navbar Responsive Styles */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
    }
    
    .nav-item {
        margin-right: 0.5rem;
    }
    
    .nav-item:last-child {
        margin-right: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        text-align: left;
        padding-top: 1rem;
    }
    
    .nav-item {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .btn-outline-primary,
    .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Extra Large Devices (xl) >= 1200px */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Large Devices (lg) >= 992px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .search-form {
        max-width: 650px;
    }
}

/* Medium Devices (md) >= 768px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .search-form {
        max-width: 600px;
    }
    
    .features-row {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .property-details {
        gap: 0.5rem;
    }
    
    .detail-item {
        width: calc(50% - 0.25rem);
    }
}

/* Small Devices (sm) >= 576px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .hero-section {
        padding: 3.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .features-row {
        padding: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem 0.75rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .property-section,
    .locations-section {
        padding: 4rem 0;
    }
    
    .property-details {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .property-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .property-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .location-img {
        height: 100px;
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 3.5rem 0 2rem;
    }
}

/* Extra Small Devices (xs) < 576px */
@media (max-width: 575.98px) {
    body {
        padding-top: 65px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .logo-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .search-wrapper {
        margin-top: 2rem;
    }
    
    .search-form {
        padding: 0.5rem;
        border-radius: 25px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-form .input-group-text {
        padding-left: 1rem;
    }
    
    .search-form .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        width: 100%;
        padding: 0.75rem;
        border-radius: 20px;
        font-size: 0.9rem;
    }
    
    .features-section {
        padding: 2.5rem 0;
        margin-top: -1rem;
    }
    
    .features-row {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 1rem 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-title {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .property-section,
    .locations-section {
        padding: 3rem 0;
    }
    
    .property-img-placeholder {
        height: 180px;
        font-size: 0.9rem;
    }
    
    .property-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .property-info {
        padding: 1.25rem;
    }
    
    .property-price {
        font-size: 1.3rem;
    }
    
    .property-title {
        font-size: 0.95rem;
    }
    
    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        font-size: 0.85rem;
    }
    
    .property-actions {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .property-actions .btn {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .location-img {
        height: 90px;
        font-size: 1rem;
    }
    
    .location-info {
        padding: 1.25rem;
    }
    
    .location-info h5 {
        font-size: 1.1rem;
    }
    
    .location-info p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-desc {
        font-size: 0.95rem;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 2rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-link {
        display: block;
        text-align: center;
        margin: 0.5rem 0 0 0;
        font-size: 0.85rem;
    }
}

/* Ultra Small Devices < 400px */
@media (max-width: 399.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .property-img-placeholder {
        height: 160px;
    }
    
    .property-info {
        padding: 1rem;
    }
    
    .property-actions {
        padding: 0.75rem 1rem;
    }
    
    .location-img {
        height: 80px;
        font-size: 0.9rem;
    }
    
    .location-info {
        padding: 1rem;
    }
    
    .features-row {
        padding: 0.75rem;
    }
    
    .feature-card {
        padding: 0.75rem 0.25rem;
    }
    
    .feature-icon {
        font-size: 1.6rem;
    }
    
    .feature-title {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .search-wrapper,
    .property-actions,
    .footer {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0;
    }
    
    .property-card,
    .location-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
